From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bfOJ5-0003eD-Qp for barebox@lists.infradead.org; Thu, 01 Sep 2016 09:29:14 +0000 From: Philipp Zabel Date: Thu, 1 Sep 2016 11:28:39 +0200 Message-Id: <1472722119-22874-1-git-send-email-p.zabel@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] video/edid: Fix edid_to_display_timings error path To: barebox@lists.infradead.org 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 --- drivers/video/edid.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/edid.c b/drivers/video/edid.c index 92b59a5..2585264 100644 --- a/drivers/video/edid.c +++ b/drivers/video/edid.c @@ -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; } -- 2.8.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox