mmc: wmt-sdmmc: Fix an error handling path in wmt_mci_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 22 Sep 2022 19:06:40 +0000 (21:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:17:01 +0000 (13:17 +0200)
commit086f71f79c7de431c0d3bdf9f94ffd5148dd4459
tree360fad9a46792d9730d1fe9497e5ad54b2e2cf83
parent831a7b5002940f83de024d66c233f6953e32c900
mmc: wmt-sdmmc: Fix an error handling path in wmt_mci_probe()

[ Upstream commit cb58188ad90a61784a56a64f5107faaf2ad323e7 ]

A dma_free_coherent() call is missing in the error handling path of the
probe, as already done in the remove function.

Fixes: 3a96dff0f828 ("mmc: SD/MMC Host Controller for Wondermedia WM8505/WM8650")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/53fc6ffa5d1c428fefeae7d313cf4a669c3a1e98.1663873255.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/host/wmt-sdmmc.c