From patchwork Thu Dec 5 23:00:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 3291471 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 6B0F09F37C for ; Thu, 5 Dec 2013 23:00:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 62D0F20501 for ; Thu, 5 Dec 2013 23:00:28 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 460B920462 for ; Thu, 5 Dec 2013 23:00:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C24B2FAAE0; Thu, 5 Dec 2013 15:00:23 -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.15.18]) by gabe.freedesktop.org (Postfix) with ESMTP id 13426FABD1 for ; Thu, 5 Dec 2013 15:00:22 -0800 (PST) Received: from linux.local ([188.110.163.58]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MIhDo-1VqupX29CC-002E5C for ; Fri, 06 Dec 2013 00:00:19 +0100 From: Peter Seiderer To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/2] imx-drm: fix channel->edid memleak Date: Fri, 6 Dec 2013 00:00:15 +0100 Message-Id: <1386284416-8364-1-git-send-email-ps.report@gmx.net> X-Mailer: git-send-email 1.8.1.4 X-Provags-ID: V03:K0:78pmdDLjngcXKC1eyc/4zpfFyrYeHJyrZN+h619bu/kRyVD+ZX4 Rtv2tDM3fPWkGWtVJ6KaQv5HG5xk3+0xParW+8rNIl4MZ3/rZC0gfJx+/qtaVxBQUMapEEd ePFSApAADsOkCNj2IHW9JMkDuZHr4vEqGlOoT60HLuvWbY1QWqX0lezuWMvy6D2SFMW/wec 2jsMmnT4oVoqBYOWMIv5w== 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/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;