git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
057eeae
)
OMAPFB: fix error handling in omapfb_find_best_mode()
author
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Thu, 13 Dec 2012 10:13:51 +0000
(12:13 +0200)
committer
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Thu, 13 Dec 2012 10:13:51 +0000
(12:13 +0200)
omapfb_find_best_mode() doesn't check for the return value of kmalloc.
Fix this. This also removes the smatch warning:
drivers/video/omap2/omapfb/omapfb-main.c:2256 omapfb_find_best_mode()
error: potential null dereference 'specs'. (kzalloc returns null)
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
No differences found