diff options
| author | Yang Yingliang <yangyingliang@huawei.com> | 2023-08-07 20:44:42 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-08-26 14:23:37 +0200 |
| commit | b803fedb6e509afe50dbe777afd47ae05c6bde8b (patch) | |
| tree | 18b68cae4a0b3d2b73fac3608d444943618063e2 | |
| parent | 961f7ce16223aee2db583a43877d84e6d1f2b857 (diff) | |
| download | linux-b803fedb6e509afe50dbe777afd47ae05c6bde8b.tar.gz linux-b803fedb6e509afe50dbe777afd47ae05c6bde8b.tar.bz2 linux-b803fedb6e509afe50dbe777afd47ae05c6bde8b.zip | |
mmc: wbsd: fix double mmc_free_host() in wbsd_init()
commit d83035433701919ac6db15f7737cbf554c36c1a6 upstream.
mmc_free_host() has already be called in wbsd_free_mmc(),
remove the mmc_free_host() in error path in wbsd_init().
Fixes: dc5b9b50fc9d ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/mmc/host/wbsd.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mmc/host/wbsd.c b/drivers/mmc/host/wbsd.c index 7c7ec8d10232..b5b1a42ca25e 100644 --- a/drivers/mmc/host/wbsd.c +++ b/drivers/mmc/host/wbsd.c @@ -1705,8 +1705,6 @@ static int wbsd_init(struct device *dev, int base, int irq, int dma, wbsd_release_resources(host); wbsd_free_mmc(dev); - - mmc_free_host(mmc); return ret; } |
