Skip to content
Commit 7fca9675 authored by Wei WANG's avatar Wei WANG Committed by Chris Ball
Browse files

mmc: core: free mmc_card if cmd 3,9,7 fails in mmc_sd_init_card



In function mmc_sd_init_card, if command 3/9/7 got failed, mmc_card
allocated just before won't be freed. This would cause memory leak.

Signed-off-by: default avatarWei WANG <wei_wang@realsil.com.cn>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 0506bc57
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment