From: Mike Rapoport <[mailto:mike@compulab.co.il]> Date: Wed, 19 Nov 2008 23:36:49 +0000 (-0800) Subject: drivers/video/backlight/da903x.c: introduce one more missing kfree X-Git-Tag: v2.6.28-rc6~17 X-Git-Url: http://pilppa.org/gitweb/?a=commitdiff_plain;h=f55491a4bcbe8bab337bc00830ca12d703ea2613;p=linux-2.6-omap-h63xx.git 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 Acked-by: Eric Miao Cc: Richard Purdie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/backlight/da903x.c b/drivers/video/backlight/da903x.c index 75388b95943..93bb4340cc6 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) data, &da903x_backlight_ops); if (IS_ERR(bl)) { dev_err(&pdev->dev, "failed to register backlight\n"); + kfree(data); return PTR_ERR(bl); }