diff options
author | Mike Rapoport <[mailto:mike@compulab.co.il]> | 2008-11-19 18:36:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-11-19 21:50:00 -0500 |
commit | f55491a4bcbe8bab337bc00830ca12d703ea2613 (patch) | |
tree | 45fa7d8cb2e7448d0a428aca6556a9d437197a2a /drivers/video/backlight | |
parent | 33d283bef23132c48195eafc21449f8ba88fce6b (diff) |
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>
Diffstat (limited to 'drivers/video/backlight')
-rw-r--r-- | drivers/video/backlight/da903x.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/backlight/da903x.c b/drivers/video/backlight/da903x.c index 75388b959439..93bb4340cc64 100644 --- a/drivers/video/backlight/da903x.c +++ b/drivers/video/backlight/da903x.c | |||
@@ -131,6 +131,7 @@ static int da903x_backlight_probe(struct platform_device *pdev) | |||
131 | data, &da903x_backlight_ops); | 131 | data, &da903x_backlight_ops); |
132 | if (IS_ERR(bl)) { | 132 | if (IS_ERR(bl)) { |
133 | dev_err(&pdev->dev, "failed to register backlight\n"); | 133 | dev_err(&pdev->dev, "failed to register backlight\n"); |
134 | kfree(data); | ||
134 | return PTR_ERR(bl); | 135 | return PTR_ERR(bl); |
135 | } | 136 | } |
136 | 137 | ||