提交 a3ee13ee 编写于 作者: A Axel Lin 提交者: Liam Girdwood

regulator: tps65910: Fix a memory leak in tps65910_probe error path

Fix a memory leak if chip id is not matched.
Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: NLiam Girdwood <lrg@slimlogic.co.uk>
上级 af8b244f
......@@ -903,6 +903,7 @@ static __devinit int tps65910_probe(struct platform_device *pdev)
info = tps65911_regs;
default:
pr_err("Invalid tps chip version\n");
kfree(pmic);
return -ENODEV;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册