]> www.infradead.org Git - users/dwmw2/linux.git/commit
mmc: usdhi6rol0: fix error return code in usdhi6_probe()
authorZhen Lei <thunder.leizhen@huawei.com>
Sat, 8 May 2021 02:03:21 +0000 (10:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:53:22 +0000 (16:53 +0200)
commitccbcdcd4af98055abc888972fcbcc0ce14c2522c
tree5ce02e153c6b9ceb4811deff1311c19896ad53f8
parentc5d2f917a8f13ce79f5221159cb7b190ae2206fb
mmc: usdhi6rol0: fix error return code in usdhi6_probe()

[ Upstream commit 2f9ae69e5267f53e89e296fccee291975a85f0eb ]

Fix to return a negative error code from the error handling case instead
of 0, as done elsewhere in this function.

Fixes: 75fa9ea6e3c0 ("mmc: add a driver for the Renesas usdhi6rol0 SD/SDIO host controller")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210508020321.1677-1-thunder.leizhen@huawei.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/host/usdhi6rol0.c