mmc: core: free mmc_card if cmd 3,9,7 fails in mmc_sd_init_card
authorWei WANG <wei_wang@realsil.com.cn>
Wed, 17 Jul 2013 06:21:10 +0000 (14:21 +0800)
committerChris Ball <cjb@laptop.org>
Sun, 25 Aug 2013 02:53:30 +0000 (22:53 -0400)
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: Wei WANG <wei_wang@realsil.com.cn>
Signed-off-by: Chris Ball <cjb@laptop.org>

No differences found