提交 9844ce05 编写于 作者: D Dan Carpenter 提交者: Richard Purdie

backlight: 88pm860x_bl - potential memory leak

I added a kfree() on the error path.  I don't really expect it to affect
anyone, but it's easy and makes the static checkers happy.
Signed-off-by: NDan Carpenter <error27@gmail.com>
Signed-off-by: NRichard Purdie <rpurdie@linux.intel.com>
上级 8193db22
......@@ -222,6 +222,7 @@ static int pm860x_backlight_probe(struct platform_device *pdev)
data->port = __check_device(pdata, name);
if (data->port < 0) {
dev_err(&pdev->dev, "wrong platform data is assigned");
kfree(data);
return -EINVAL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册