]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: usdhi6rol0: Fix a resource leak in the error handling path of the probe
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 17 Dec 2020 21:09:22 +0000 (22:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Mar 2021 15:44:19 +0000 (16:44 +0100)
commite5f80e8244fa63cb929afdb78b98c16836ba96f1
treeca93de5f7a339688f9dc94e881b8ba075c7edc39
parent07bb4c93f39f457023ecb69342c0ee72044f38ea
mmc: usdhi6rol0: Fix a resource leak in the error handling path of the probe

[ Upstream commit 6052b3c370fb82dec28bcfff6d7ec0da84ac087a ]

A call to 'ausdhi6_dma_release()' to undo a previous call to
'usdhi6_dma_request()' is missing in the error handling path of the probe
function.

It is already present in the remove function.

Fixes: 75fa9ea6e3c0 ("mmc: add a driver for the Renesas usdhi6rol0 SD/SDIO host controller")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20201217210922.165340-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/host/usdhi6rol0.c