Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fbdev: propagate result of fb_videomode_from_videomode()

fb_videomode_from_videomode() may fail, but of_get_fb_videomode()
silently covers this fact. Instead, trow the error code to the
caller.

Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

authored by

Vladimir Murzin and committed by
Tomi Valkeinen
9f5ddefd 127b0c94

+3 -1
+3 -1
drivers/video/fbdev/core/fbmon.c
··· 1475 1475 if (ret) 1476 1476 return ret; 1477 1477 1478 - fb_videomode_from_videomode(&vm, fb); 1478 + ret = fb_videomode_from_videomode(&vm, fb); 1479 + if (ret) 1480 + return ret; 1479 1481 1480 1482 pr_debug("%s: got %dx%d display mode from %s\n", 1481 1483 of_node_full_name(np), vm.hactive, vm.vactive, np->name);