projects/linux·commit f55491a4

drivers/video/backlight/da903x.c: introduce one more missing kfree

f55491a4 · Mike Rapoport <[mailto:[email protected]]> · 2008-11-19 15:36:49 -08:00

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]>
Commit
f55491a4bcbe8bab337bc00830ca12d703ea2613
Parents
33d283be

Changes

1 files changed · +1 −0

FileStatusAddDelContent
drivers/video/backlight/da903x.cmodified+1−0View file

drivers/video/backlight/da903x.c

View file
diff --git a/drivers/video/backlight/da903x.c b/drivers/video/backlight/da903x.c
index 75388b9..93bb434 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);
}