Commit 9e0a32ad authored by Yang Yingliang's avatar Yang Yingliang Committed by sanglipeng
Browse files

mmc: wbsd: fix double mmc_free_host() in wbsd_init()

stable inclusion
from stable-v5.10.192
commit 9022e9e62db9a560817a7f48386eb8b6f675304f
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I933RF

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=9022e9e62db9a560817a7f48386eb8b6f675304f



--------------------------------

commit d8303543 upstream.

mmc_free_host() has already be called in wbsd_free_mmc(),
remove the mmc_free_host() in error path in wbsd_init().

Fixes: dc5b9b50 ("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>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 119b0f24
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment