]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
mmc: owl-mmc: Fix a resource leak in an error handling path and in the remove function
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 9 Dec 2020 19:42:02 +0000 (20:42 +0100)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 15 Mar 2021 14:09:22 +0000 (15:09 +0100)
commitbf1e360d37ff664f155921900c6416e28ff12e12
tree230efba737a92d6f3cdb69320d1225e73382dbe5
parentb423b4fe1764fb7e3aa19268fd117f0b9aea0100
mmc: owl-mmc: Fix a resource leak in an error handling path and in the remove function

[ Upstream commit 5d15cbf63515c6183d2ed7c9dd0586b4db23ffb1 ]

'dma_request_chan()' calls should be balanced by a corresponding
'dma_release_channel()' call.

Add the missing call both in the error handling path of the probe function
and in the remove function.

Fixes: ff65ffe46d28 ("mmc: Add Actions Semi Owl SoCs SD/MMC driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20201209194202.54099-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/mmc/host/owl-mmc.c