Skip to content

Commit

Permalink
drivers/video/backlight/da903x.c: introduce one more missing kfree
Browse files Browse the repository at this point in the history
One more error handling code should have kfree as well

Signed-off-by: Mike Rapoport <[email protected]>
Acked-by: Eric Miao <[email protected]>
Cc: Richard Purdie <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Mike Rapoport authored and torvalds committed Nov 20, 2008
1 parent 33d283b commit f55491a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/backlight/da903x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit f55491a

Please sign in to comment.