提交 803c78e4 编写于 作者: A Alan Cox 提交者: Russell King

[ARM] twl4030 - leak fix

Trivial error path leak fix. Problem found by Daniel Marjamäki using
cppcheck
Signed-off-by: NAlan Cox <alan@lxorguk.ukuu.org.uk>
Acked-by: NTony Lindgren <tony@atomide.com>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 b23c7a42
......@@ -397,6 +397,7 @@ void __init twl4030_mmc_init(struct twl4030_hsmmc_info *controllers)
break;
default:
pr_err("MMC%d configuration not supported!\n", c->mmc);
kfree(mmc);
continue;
}
hsmmc_data[c->mmc - 1] = mmc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册