projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
video: fbdev: pxafb: potential NULL dereference on error
[cascardo/linux.git]
/
drivers
/
video
/
fbdev
/
pxafb.c
diff --git
a/drivers/video/fbdev/pxafb.c
b/drivers/video/fbdev/pxafb.c
index
2c0487f
..
ed41fdb
100644
(file)
--- a/
drivers/video/fbdev/pxafb.c
+++ b/
drivers/video/fbdev/pxafb.c
@@
-2125,7
+2125,7
@@
static int of_get_pxafb_display(struct device *dev, struct device_node *disp,
timings = of_get_display_timings(disp);
if (!timings)
-
goto out
;
+
return -EINVAL
;
ret = -ENOMEM;
info->modes = kmalloc_array(timings->num_timings,