From: Yang Yingliang <yangyingliang@huawei.com>
To: <linux-mmc@vger.kernel.org>
Cc: <pierre@ossman.eu>, <ulf.hansson@linaro.org>, <yangyingliang@huawei.com>
Subject: [PATCH -next 1/2] mmc: wbsd: fix double mmc_free_host() in wbsd_init()
Date: Mon, 7 Aug 2023 20:44:42 +0800 [thread overview]
Message-ID: <20230807124443.3431366-1-yangyingliang@huawei.com> (raw)
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>
---
drivers/mmc/host/wbsd.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/mmc/host/wbsd.c b/drivers/mmc/host/wbsd.c
index 521af9251f33..bf2a92fba0ed 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;
}
--
2.25.1
next reply other threads:[~2023-08-07 12:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-07 12:44 Yang Yingliang [this message]
2023-08-07 12:44 ` [PATCH -next 2/2] mmc: wbsd: remove unnecessary dev_set_drvdata() Yang Yingliang
2023-08-09 11:34 ` [PATCH -next 1/2] mmc: wbsd: fix double mmc_free_host() in wbsd_init() Ulf Hansson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230807124443.3431366-1-yangyingliang@huawei.com \
--to=yangyingliang@huawei.com \
--cc=linux-mmc@vger.kernel.org \
--cc=pierre@ossman.eu \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.