]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPFB: fix error handling in omapfb_find_best_mode()
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 13 Dec 2012 10:13:51 +0000 (12:13 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 13 Dec 2012 10:13:51 +0000 (12:13 +0200)
commit6e0039e7e97a12d22532cb7f7538af945b66142d
tree2cc89b6c3d598591156a150df9e4a227db1cad42
parent8428fdd499b231eeb48ee8d072e9e0c4ef227f89
OMAPFB: fix error handling in omapfb_find_best_mode()

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>
drivers/video/omap2/omapfb/omapfb-main.c