9
0
Fork 0

video/edid: Fix edid_to_display_timings error path

edid_to_display_timings is called in drivers/video/imx-ipu-v3/imx-hdmi.c,
drivers/video/simple-panel.c, and drivers/video/edid.c with the struct
display_timings *timings parameter pointing to an embedded struct
display_timings inside a struct fb_info. The timings pointer is not to
be freed in the error path.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Philipp Zabel 2016-09-01 11:28:39 +02:00 committed by Sascha Hauer
parent 46e30c9ac0
commit 6ed5b755ba
1 changed files with 0 additions and 1 deletions

View File

@ -792,7 +792,6 @@ int edid_to_display_timings(struct display_timings *timings, unsigned char *edid
return 0;
out:
free(timings);
free(mode);
return ret;
}