Skip to content

Commit d830354

Browse files
Yang Yingliangstorulf
authored andcommitted
mmc: wbsd: fix double mmc_free_host() in wbsd_init()
mmc_free_host() has already be called in wbsd_free_mmc(), remove the mmc_free_host() in error path in wbsd_init(). Fixes: dc5b9b5 ("mmc: wbsd: fix return value check of mmc_add_host()") Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20230807124443.3431366-1-yangyingliang@huawei.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 4b430d4 commit d830354

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/mmc/host/wbsd.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,8 +1705,6 @@ static int wbsd_init(struct device *dev, int base, int irq, int dma,
17051705

17061706
wbsd_release_resources(host);
17071707
wbsd_free_mmc(dev);
1708-
1709-
mmc_free_host(mmc);
17101708
return ret;
17111709
}
17121710

0 commit comments

Comments
 (0)