From patchwork Wed Aug 15 09:32:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jani Nikula X-Patchwork-Id: 1325461 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 35C32DFFED for ; Wed, 15 Aug 2012 12:29:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 297F8A0C4F for ; Wed, 15 Aug 2012 05:29:16 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mga14.intel.com (mga14.intel.com [143.182.124.37]) by gabe.freedesktop.org (Postfix) with ESMTP id D6D189E814 for ; Wed, 15 Aug 2012 02:33:17 -0700 (PDT) Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga102.ch.intel.com with ESMTP; 15 Aug 2012 02:33:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.77,772,1336374000"; d="scan'208";a="181277169" Received: from unknown (HELO localhost) ([10.255.12.250]) by azsmga001.ch.intel.com with ESMTP; 15 Aug 2012 02:33:00 -0700 From: Jani Nikula To: dri-devel@lists.freedesktop.org, linux@arm.linux.org.uk, daniel@ffwll.ch, airlied@linux.ie Subject: [PATCH 3/4] drm/exynos: fix EDID memory leak in HDMI Date: Wed, 15 Aug 2012 12:32:38 +0300 Message-Id: <36e2490cdd41a21e31cba18ce5ad2d92cecbad98.1345022231.git.jani.nikula@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: References: In-Reply-To: References: X-Mailman-Approved-At: Wed, 15 Aug 2012 05:25:40 -0700 Cc: jani.nikula@intel.com 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+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org The EDID returned by drm_get_edid() was never freed. Signed-off-by: Jani Nikula --- drivers/gpu/drm/exynos/exynos_hdmi.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 409e2ec..b55335b 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -1282,6 +1282,7 @@ static int hdmi_get_edid(void *ctx, struct drm_connector *connector, DRM_DEBUG_KMS("%s : width[%d] x height[%d]\n", (hdata->dvi_mode ? "dvi monitor" : "hdmi monitor"), raw_edid->width_cm, raw_edid->height_cm); + kfree(raw_edid); } else { return -ENODEV; }