]> xenbits.xensource.com Git - people/aperard/linux-chromebook.git/commitdiff
DRM/exynos: Fix Memory Leak: free EDID block returned by drm_get_edid().
authorStéphane Marchesin <marcheu@chromium.org>
Mon, 19 Nov 2012 23:01:46 +0000 (15:01 -0800)
committerGerrit <chrome-bot@google.com>
Tue, 20 Nov 2012 00:58:14 +0000 (16:58 -0800)
This was just posted on the dri-devel list, and affects us also. It's
not a direct cherry-pick since we moved the code around.

BUG=none
TEST=by hand

Change-Id: Ibd76bc48094e466fe574af23d37c8df1e0262a8d
Signed-off-by: Egbert Eich <eich@suse.de>
Reviewed-on: https://gerrit.chromium.org/gerrit/38334
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Commit-Ready: Stéphane Marchesin <marcheu@chromium.org>
Tested-by: Stéphane Marchesin <marcheu@chromium.org>
drivers/gpu/drm/exynos/exynos_hdmi.c

index 900d7e1f7beec2fd98817470273bb9cdb8aafa39..e4289f575f5fdba6d293d38335185e6e749265b1 100644 (file)
@@ -911,6 +911,7 @@ static int hdmi_get_edid(void *ctx, struct drm_connector *connector,
                DRM_DEBUG_KMS("%s : width[%d] x height[%d]\n",
                        (hdata->has_hdmi_sink ? "hdmi monitor" : "dvi monitor"),
                        raw_edid->width_cm, raw_edid->height_cm);
+               kfree(raw_edid);
        } else {
                return -ENODEV;
        }