video: tc358767: set num_modes=0 if no valid mode found
Since commit f986661 "video: ipu: register framebuffer,
even when no modes are found" value returned from
VPL_GET_VIDEOMODES ioctl is ignored. So set valid num_modes
in error case to avoid crash in register_framebuffer.

Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 36ee250 commit efdeb990d2f6fbc8c4b10e9967fe26d472bcf7bf
@Andrey Gusakov Andrey Gusakov authored on 23 Mar 2018
Sascha Hauer committed on 26 Mar 2018
Showing 1 changed file
View
drivers/video/tc358767.c