提交 1f976996 编写于 作者: A Axel Lin 提交者: Richard Purdie

backlight: 88pm860x_bl: fix error handling in pm860x_backlight_probe

This patch  properly unregisters a previously registered backlight device object
in error handling
Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Signed-off-by: NRichard Purdie <rpurdie@linux.intel.com>
上级 146e10a8
......@@ -267,6 +267,7 @@ static int pm860x_backlight_probe(struct platform_device *pdev)
backlight_update_status(bl);
return 0;
out:
backlight_device_unregister(bl);
kfree(data);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册