From patchwork Sun Dec 8 21:03:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 3307411 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7575D9F37A for ; Sun, 8 Dec 2013 21:04:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9771E20213 for ; Sun, 8 Dec 2013 21:04:07 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 6336A201FD for ; Sun, 8 Dec 2013 21:04:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CA186FAEE7; Sun, 8 Dec 2013 13:04:02 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 50B09FAEE7 for ; Sun, 8 Dec 2013 13:04:01 -0800 (PST) Received: from linux.local ([188.110.163.58]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MQzoI-1W0AJC16cg-00ULkW for ; Sun, 08 Dec 2013 22:04:00 +0100 From: Peter Seiderer To: dri-devel@lists.freedesktop.org Subject: [PATCH v2] imx-drm: fix channel->edid memleak Date: Sun, 8 Dec 2013 22:03:57 +0100 Message-Id: <1386536638-4450-1-git-send-email-ps.report@gmx.net> X-Mailer: git-send-email 1.8.1.4 X-Provags-ID: V03:K0:zd5FqzcnO0TJdZwnNICb5W++4SNXEVFhmGswEDRr0zLeJZD/U6w TlOKSTmozhKvE71MrW/atb7TUMugdKkPxIkJQOMSAPdehp5YfJFxzgg8jm21np/O/1Kx3JC Q2OaM12SpPEIYWe19H7FRA7MWl+Y3GuVPV+cTc8pCdFtdw6Pec5mK8FzmMXkirJPrNUo3Nj 5+UiUlP5XwQJUb7UUMpFg== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Peter Seiderer Acked-by: Sascha Hauer --- Changes v1 -> v2: - add missing Signed-off-by line drivers/staging/imx-drm/imx-ldb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/imx-drm/imx-ldb.c b/drivers/staging/imx-drm/imx-ldb.c index 7e59329..448f3ce 100644 --- a/drivers/staging/imx-drm/imx-ldb.c +++ b/drivers/staging/imx-drm/imx-ldb.c @@ -599,6 +599,8 @@ static int imx_ldb_remove(struct platform_device *pdev) imx_drm_remove_connector(channel->imx_drm_connector); imx_drm_remove_encoder(channel->imx_drm_encoder); + + kfree(channel->edid); } return 0;