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: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> (cherry picked from commit f2dced9d) Signed-off-by:
Lee Jones <joneslee@google.com> Change-Id: I2d36087cf91f9524dccb17e4aad332d3ff63fc23
Loading
Please sign in to comment