[PATCH AUTOSEL for 4.14 29/67] mmc: block: fix logical error to avoid memory leak

2018-03-07 Thread Sasha Levin
From: "Liu, Changcheng" [ Upstream commit 0be55579a127916ebe39db2a74d906a2dfceed42 ] If the MMC_DRV_OP_GET_EXT_CSD request completes successfully, then ext_csd must be freed, but in one case it was not. Fix that. Signed-off-by: Liu Changcheng

[PATCH AUTOSEL for 4.14 29/67] mmc: block: fix logical error to avoid memory leak

2018-03-07 Thread Sasha Levin
From: "Liu, Changcheng" [ Upstream commit 0be55579a127916ebe39db2a74d906a2dfceed42 ] If the MMC_DRV_OP_GET_EXT_CSD request completes successfully, then ext_csd must be freed, but in one case it was not. Fix that. Signed-off-by: Liu Changcheng Acked-by: Adrian Hunter Acked-by: Linus Walleij