mmc: sdhci: Fix host->cmd is null
authorWenchao Chen <wenchao.chen@unisoc.com>
Wed, 7 Sep 2022 03:58:47 +0000 (11:58 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 14 Sep 2022 10:03:32 +0000 (12:03 +0200)
commitfaded9b5572a27c1eaec19f3a2759b4547507731
treedb262ebb07d5cc01e4069df2c5ac2947fbea8182
parent80e78fcce86de0288793a0ef0f6acf37656ee4cf
mmc: sdhci: Fix host->cmd is null

When data crc occurs, the kernel will panic because host->cmd is null.

Signed-off-by: Wenchao Chen <wenchao.chen@unisoc.com>
Fixes: efe8f5c9b5e1 ("mmc: sdhci: Capture eMMC and SD card errors")
Cc: stable@vger.kernel.org
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20220907035847.13783-1-wenchao.chen666@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c