diff options
author | Jean Delvare <khali@linux-fr.org> | 2006-03-09 17:33:36 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-09 19:47:37 -0800 |
commit | 10ad1b7363090c0eec2b4054a5a3b82d2cc09ee5 (patch) | |
tree | 7e0b92fd8fc084311c8e1bec93484ecacfc99a75 /drivers/video/backlight/lcd.c | |
parent | 435a80f610b2ac38a4b5334a7ae22672de3f06bd (diff) | |
download | op-kernel-dev-10ad1b7363090c0eec2b4054a5a3b82d2cc09ee5.zip op-kernel-dev-10ad1b7363090c0eec2b4054a5a3b82d2cc09ee5.tar.gz |
[PATCH] Fix error handling in backlight drivers
ERR_PTR() is supposed to be passed a negative value.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/backlight/lcd.c')
-rw-r--r-- | drivers/video/backlight/lcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/lcd.c b/drivers/video/backlight/lcd.c index 9e32485..86908a6 100644 --- a/drivers/video/backlight/lcd.c +++ b/drivers/video/backlight/lcd.c @@ -171,7 +171,7 @@ struct lcd_device *lcd_device_register(const char *name, void *devdata, new_ld = kmalloc(sizeof(struct lcd_device), GFP_KERNEL); if (unlikely(!new_ld)) - return ERR_PTR(ENOMEM); + return ERR_PTR(-ENOMEM); init_MUTEX(&new_ld->sem); new_ld->props = lp; |