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)
commitfa0c5e71295fa4d62b900818d900c16980985e72
tree2cc89b6c3d598591156a150df9e4a227db1cad42
parent057eeaee6803dafbbf2f79345643530e731ba7cb
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
This page took 0.026436 seconds and 5 git commands to generate.