Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit fa0c5e71 authored by Tomi Valkeinen's avatar Tomi Valkeinen
Browse files

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: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 057eeaee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment