linux-stable/drivers/ufs/core
Dan Carpenter f2dced9d19 scsi: ufs: Uninitialized variable in ufshcd_devfreq_target()
There is one goto where "sched_clk_scaling_suspend_work" is true but
"scale_up" is uninitialized.  It leads to a Smatch uninitialized variable
warning:

drivers/ufs/core/ufshcd.c:1589 ufshcd_devfreq_target() error: uninitialized symbol 'scale_up'.

Fixes: 1d969731b8 ("scsi: ufs: core: Only suspend clock scaling if scaling down")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/c787d37f-1107-4512-8991-bccf80e74a35@moroto.mountain
Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2024-02-15 14:46:13 -05:00
..
Kconfig scsi: ufs: core: Remove HPB support 2023-07-23 16:40:39 -04:00
Makefile scsi: ufs: core: Remove HPB support 2023-07-23 16:40:39 -04:00
ufs-debugfs.c
ufs-debugfs.h
ufs-fault-injection.c scsi: ufs: core: Make fault injection dynamically configurable per HBA 2023-11-24 19:23:35 -05:00
ufs-fault-injection.h scsi: ufs: core: Make fault injection dynamically configurable per HBA 2023-11-24 19:23:35 -05:00
ufs-hwmon.c scsi: ufs: Rename a function argument 2023-07-31 15:17:50 -04:00
ufs-mcq.c scsi: ufs: core: Fix racing issue between ufshcd_mcq_abort() and ISR 2023-11-08 21:40:41 -05:00
ufs-sysfs.c Merge patch series "Add UFS RTC support" 2023-12-13 23:17:17 -05:00
ufs-sysfs.h
ufs_bsg.c scsi: ufs: core: Add advanced RPMB support where UFSHCI 4.0 does not support EHS length in UTRD 2023-08-30 21:42:30 -04:00
ufs_bsg.h
ufshcd-crypto.c scsi: ufs: Ungate the clock synchronously 2023-05-31 11:44:01 -04:00
ufshcd-crypto.h scsi: ufs: Simplify transfer request header initialization 2023-07-31 15:17:51 -04:00
ufshcd-priv.h scsi: ufs: Improve type safety 2023-07-31 15:17:50 -04:00
ufshcd.c scsi: ufs: Uninitialized variable in ufshcd_devfreq_target() 2024-02-15 14:46:13 -05:00