[ARM] twl4030 - leak fix
Trivial error path leak fix. Problem found by Daniel Marjamäki using cppcheck Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
@@ -397,6 +397,7 @@ void __init twl4030_mmc_init(struct twl4030_hsmmc_info *controllers)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
pr_err("MMC%d configuration not supported!\n", c->mmc);
|
pr_err("MMC%d configuration not supported!\n", c->mmc);
|
||||||
|
kfree(mmc);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
hsmmc_data[c->mmc - 1] = mmc;
|
hsmmc_data[c->mmc - 1] = mmc;
|
||||||
|
Reference in New Issue
Block a user