diff options
author | Martlin Ettl <ettl.martin@gmx.de> | 2012-07-05 16:58:46 (GMT) |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-07-09 14:20:11 (GMT) |
commit | 9ea3c498962bc63748e92c31c874169ab0726324 (patch) | |
tree | 7cf0ecae900eb80fc06371300fbbf304fa01861b /drivers/video/backlight | |
parent | 59f91e5dd0504dc0ebfaa0b6f3a55e6931f96266 (diff) | |
download | linux-9ea3c498962bc63748e92c31c874169ab0726324.tar.xz |
backlight: fix memory leak on obscure error path
Dredged out of bugzilla
Reported-by: Martlin Ettl <ettl.martin@gmx.de>
Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=15492
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/video/backlight')
-rw-r--r-- | drivers/video/backlight/88pm860x_bl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/backlight/88pm860x_bl.c b/drivers/video/backlight/88pm860x_bl.c index f49181c..f75da87 100644 --- a/drivers/video/backlight/88pm860x_bl.c +++ b/drivers/video/backlight/88pm860x_bl.c @@ -228,6 +228,7 @@ static int pm860x_backlight_probe(struct platform_device *pdev) data->port = pdata->flags; if (data->port < 0) { dev_err(&pdev->dev, "wrong platform data is assigned"); + kfree(data); return -EINVAL; } |