mmc: sdhci: Fix potential null pointer access while accessing vqmmc
authorVeerabhadrarao Badiganti <vbadigan@codeaurora.org>
Thu, 9 Jul 2020 13:13:25 +0000 (18:43 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Jul 2020 10:18:26 +0000 (12:18 +0200)
commit3debc24f7fe637ebefbaa3d37aeecb33a69bde11
treea23cf01719ea360c9ab5b214ff292189a2535c74
parentec02760b63c21c439d44956e9c66d0af24011f03
mmc: sdhci: Fix potential null pointer access while accessing vqmmc

Don't access vqmmc regulator handler, if it's already invalidated.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Link: https://lore.kernel.org/r/1594300408-17658-1-git-send-email-vbadigan@codeaurora.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c