drivers/video/backlight/da903x.c: introduce one more missing kfree
authorMike Rapoport <[mailto:mike@compulab.co.il]>
Wed, 19 Nov 2008 23:36:49 +0000 (15:36 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 20 Nov 2008 02:50:00 +0000 (18:50 -0800)
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>
drivers/video/backlight/da903x.c

index 75388b959439b9cb07790ec4e0c7d127c26029a2..93bb4340cc64e66470841868c1d52535ef595d2e 100644 (file)
@@ -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);
        }