From patchwork Sun Dec 8 21:03:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 3307421 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 117DE9F37A for ; Sun, 8 Dec 2013 21:04:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 620FA20213 for ; Sun, 8 Dec 2013 21:04:09 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id A2EF2201FD for ; Sun, 8 Dec 2013 21:04:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 679DEFAEEB; Sun, 8 Dec 2013 13:04:06 -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 1F33AFAEEB for ; Sun, 8 Dec 2013 13:04:03 -0800 (PST) Received: from linux.local ([188.110.163.58]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LeNGL-1VDPVl2V5R-00q7b9 for ; Sun, 08 Dec 2013 22:04:00 +0100 From: Peter Seiderer To: dri-devel@lists.freedesktop.org Subject: [PATCH v2] imx-drm: fix imxpd-->edid memleak Date: Sun, 8 Dec 2013 22:03:58 +0100 Message-Id: <1386536638-4450-2-git-send-email-ps.report@gmx.net> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1386536638-4450-1-git-send-email-ps.report@gmx.net> References: <1386536638-4450-1-git-send-email-ps.report@gmx.net> X-Provags-ID: V03:K0:AtlchLTCblPkW46F9pBq49iqUuVujA9TaJIUr3QYSZmuiJ7E889 WzsA5hLu6Cbm42UaSo7SBWZT9qHC/YDDZKxvAs31KjQH82jsnf5c2KwJmxo2fFCJx4Ho7nd 1/y1ZfCvtMbL9uogv0QpwRWVf60qrj2gBA3yEjqsUKBfihBIGEmmisFAMQlZKarYfKN4eTh 7mgbDoKRc2+wqFQjJCcFQ== 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 --- Changes v1 -> v2: - add missing Signed-off-by line 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; }