]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: mediatek: free the ext_csd when mmc_get_ext_csd success
authorWenbin Mei <wenbin.mei@mediatek.com>
Tue, 7 Dec 2021 07:50:13 +0000 (15:50 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 9 Dec 2021 09:30:11 +0000 (10:30 +0100)
commitd594b35d3b31bc04b6ef36589f38135d3acb8df5
treeb7bd3e32316de7c4269ca8fb3726cc1674718b33
parent7dba402807a85fa3723f4a27504813caf81cc9d7
mmc: mediatek: free the ext_csd when mmc_get_ext_csd success

If mmc_get_ext_csd success, the ext_csd are not freed.
Add the missing kfree() calls.

Signed-off-by: Wenbin Mei <wenbin.mei@mediatek.com>
Fixes: c4ac38c6539b ("mmc: mtk-sd: Add HS400 online tuning support")
Link: https://lore.kernel.org/r/20211207075013.22911-1-wenbin.mei@mediatek.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mtk-sd.c