Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54deee3f authored by Yang Yingliang's avatar Yang Yingliang Committed by Greg Kroah-Hartman
Browse files

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: default avatarYang Yingliang <yangyingliang@huawei.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230807124443.3431366-1-yangyingliang@huawei.com


Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4259dd53
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1708,8 +1708,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;
	}