projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8193db2
)
backlight: 88pm860x_bl - potential memory leak
author
Dan Carpenter
<error27@gmail.com>
Fri, 7 May 2010 09:06:21 +0000
(11:06 +0200)
committer
Richard Purdie
<rpurdie@linux.intel.com>
Wed, 26 May 2010 12:08:31 +0000
(13:08 +0100)
I added a kfree() on the error path. I don't really expect it to affect
anyone, but it's easy and makes the static checkers happy.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
drivers/video/backlight/88pm860x_bl.c
patch
|
blob
|
history
diff --git
a/drivers/video/backlight/88pm860x_bl.c
b/drivers/video/backlight/88pm860x_bl.c
index
68d2518
..
78d8fde
100644
(file)
--- a/
drivers/video/backlight/88pm860x_bl.c
+++ b/
drivers/video/backlight/88pm860x_bl.c
@@
-222,6
+222,7
@@
static int pm860x_backlight_probe(struct platform_device *pdev)
data->port = __check_device(pdata, name);
if (data->port < 0) {
dev_err(&pdev->dev, "wrong platform data is assigned");
+ kfree(data);
return -EINVAL;
}