]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mmc: core: Add error handling of sd_uhs2_power_up()
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 29 Oct 2024 13:17:48 +0000 (14:17 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Oct 2024 11:02:11 +0000 (12:02 +0100)
In sd_uhs2_reinit() the call to sd_uhs2_power_up() lacks error handling, so
let's add it.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>
Message-ID: <20241029131752.226764-3-ulf.hansson@linaro.org>

drivers/mmc/core/sd_uhs2.c

index 06857e1bbdb0da23fa6b7b63587a3b7c2dfabc81..f0d631b4bbd72e012427067403c8f62d23038dcf 100644 (file)
@@ -999,7 +999,9 @@ static int sd_uhs2_reinit(struct mmc_host *host)
        struct mmc_card *card = host->card;
        int err;
 
-       sd_uhs2_power_up(host);
+       err = sd_uhs2_power_up(host);
+       if (err)
+               return err;
 
        err = sd_uhs2_phy_init(host);
        if (err)