]> 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)
commit502a85624aab9e13756bef4060522d669aae5f6b
treeb7bd3e32316de7c4269ca8fb3726cc1674718b33
parentf2c557f186c37bda9878b8fab2f25ecb6b761c97
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: db0f47d3c6a9 ("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