Commit bea8a4ba authored by Dan Carpenter's avatar Dan Carpenter Committed by Treehugger Robot
Browse files

UPSTREAM: 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'.

Bug: 254441685
Fixes: 1d969731 ("scsi: ufs: core: Only suspend clock scaling if scaling down")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/c787d37f-1107-4512-8991-bccf80e74a35@moroto.mountain


Reviewed-by: default avatarPeter Wang <peter.wang@mediatek.com>
Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit f2dced9d)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: I2d36087cf91f9524dccb17e4aad332d3ff63fc23
parent 1896bfd9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment