summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/sdhci.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-10-13 13:00:52 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2021-10-14 14:21:42 +0300
commit0eab756f8821d255016c63bb55804c429ff4bdb1 (patch)
treea0636ed95d1028fe0d54e9984ee98f95af2f154c /drivers/mmc/host/sdhci.c
parent92d23216fe7cd7a67f749148aacb7effd5eb34b4 (diff)
downloadlinux-0eab756f8821d255016c63bb55804c429ff4bdb1.tar.xz
mmc: moxart: Fix null pointer dereference on pointer host
There are several error return paths that dereference the null pointer host because the pointer has not yet been set to a valid value. Fix this by adding a new out_mmc label and exiting via this label to avoid the host clean up and hence the null pointer dereference. Addresses-Coverity: ("Explicit null dereference") Fixes: 8105c2abbf36 ("mmc: moxart: Fix reference count leaks in moxart_probe") Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: https://lore.kernel.org/r/20211013100052.125461-1-colin.king@canonical.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci.c')
0 files changed, 0 insertions, 0 deletions