diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-02-01 05:38:21 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-02-03 04:50:08 -0500 |
commit | aefd330e694d5b7b9657cc53821c7879b14c8128 (patch) | |
tree | bea5795d49431def94832735b5de2751d1f06ac5 /drivers/gpu/drm/drm_edid.c | |
parent | 59ce062ead2a7d114a1e7f505f250eabab9e9d85 (diff) |
drm/edid: drm modes have to be free with drm_mode_destroy
to add the missing drm_mode_object_put for that mode.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_edid.c')
-rw-r--r-- | drivers/gpu/drm/drm_edid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 54a4efa0eef7..7ee7be1e5ce6 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c | |||
@@ -750,7 +750,7 @@ drm_mode_std(struct drm_connector *connector, struct edid *edid, | |||
750 | */ | 750 | */ |
751 | mode = drm_gtf_mode(dev, hsize, vsize, vrefresh_rate, 0, 0); | 751 | mode = drm_gtf_mode(dev, hsize, vsize, vrefresh_rate, 0, 0); |
752 | if (drm_mode_hsync(mode) > drm_gtf2_hbreak(edid)) { | 752 | if (drm_mode_hsync(mode) > drm_gtf2_hbreak(edid)) { |
753 | kfree(mode); | 753 | drm_mode_destroy(dev, mode); |
754 | mode = drm_gtf_mode_complex(dev, hsize, vsize, | 754 | mode = drm_gtf_mode_complex(dev, hsize, vsize, |
755 | vrefresh_rate, 0, 0, | 755 | vrefresh_rate, 0, 0, |
756 | drm_gtf2_m(edid), | 756 | drm_gtf2_m(edid), |