mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 05:32:00 +00:00
drivers/video/backlight/da903x.c: introduce one more missing kfree
One more error handling code should have kfree as well Signed-off-by: Mike Rapoport <mike@compulab.co.il> Acked-by: Eric Miao <eric.miao@marvell.com> Cc: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
33d283bef2
commit
f55491a4bc
@ -131,6 +131,7 @@ static int da903x_backlight_probe(struct platform_device *pdev)
|
||||
data, &da903x_backlight_ops);
|
||||
if (IS_ERR(bl)) {
|
||||
dev_err(&pdev->dev, "failed to register backlight\n");
|
||||
kfree(data);
|
||||
return PTR_ERR(bl);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user