From patchwork Thu Dec 5 23:00:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 3291481 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 27ACF9F37C for ; Thu, 5 Dec 2013 23:00:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 22BEA20501 for ; Thu, 5 Dec 2013 23:00:31 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 164D020462 for ; Thu, 5 Dec 2013 23:00:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AE834FABD1; Thu, 5 Dec 2013 15:00:26 -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.22]) by gabe.freedesktop.org (Postfix) with ESMTP id BE8B1FAAE0 for ; Thu, 5 Dec 2013 15:00:21 -0800 (PST) Received: from linux.local ([188.110.163.58]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0LaJWs-1VAjnO16NC-00m3HY for ; Fri, 06 Dec 2013 00:00:20 +0100 From: Peter Seiderer To: dri-devel@lists.freedesktop.org Subject: [PATCH 2/2] imx-drm: fix imxpd-->edid memleak Date: Fri, 6 Dec 2013 00:00:16 +0100 Message-Id: <1386284416-8364-2-git-send-email-ps.report@gmx.net> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1386284416-8364-1-git-send-email-ps.report@gmx.net> References: <1386284416-8364-1-git-send-email-ps.report@gmx.net> X-Provags-ID: V03:K0:xt9GIwFviFrS2k33r++zLavvnEYPGxJADq5MOwyTvWWgw1/9Du9 s8sIQT0egobOdFI5bOlIQC4l1qmDWYSCuerlabxhMyyt3AqSy4XDIQGwSulZ6QLI0RhZLeC TI2+Ud5/AVM6OvFixyUcREaZUQw/9/QZmm7BMH0RU39Ph398PdIKeHTtbqOTjDCkaItdnOO 3ygfhEzL/HNRvbk3fxUzQ== Cc: Greg Kroah-Hartman , Sascha Hauer 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.2 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 --- drivers/staging/imx-drm/parallel-display.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/imx-drm/parallel-display.c b/drivers/staging/imx-drm/parallel-display.c index 24aa9be..705a914 100644 --- a/drivers/staging/imx-drm/parallel-display.c +++ b/drivers/staging/imx-drm/parallel-display.c @@ -248,6 +248,8 @@ static int imx_pd_remove(struct platform_device *pdev) imx_drm_remove_connector(imxpd->imx_drm_connector); imx_drm_remove_encoder(imxpd->imx_drm_encoder); + kfree(imxpd->edid); + return 0; }