kernel_optimize_test/drivers/mmc
Wolfram Sang 172a982244 mmc: renesas_sdhi: initialize variable properly when tuning
commit 7dba402807a85fa3723f4a27504813caf81cc9d7 upstream.

'cmd_error' is not necessarily initialized on some error paths in
mmc_send_tuning(). Initialize it.

Fixes: 2c9017d0b5d3 ("mmc: renesas_sdhi: abort tuning when timeout detected")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20211130132309.18246-1-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-12-14 11:32:39 +01:00
..
core mmc: core: Return correct emmc response in case of ioctl error 2021-09-18 13:40:32 +02:00
host mmc: renesas_sdhi: initialize variable properly when tuning 2021-12-14 11:32:39 +01:00
Kconfig
Makefile