diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-02-01 05:38:19 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-02-03 04:50:38 -0500 |
commit | 554f1d7888d4a1055965198d0ac46ba50e8b684e (patch) | |
tree | c0ce511699a77399ba1c20206277c05a62392bd6 /drivers/gpu | |
parent | aefd330e694d5b7b9657cc53821c7879b14c8128 (diff) |
drm crtc: use drm_mode_destroy instead of kfree in drm_mode_remove
Modes are created using drm_mode_create which does a
drm_mode_object_get, so use drm_mode_destroy in drm_mode_remove
which does a drm_mode_object_put.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index c1a0d346b0c2..33ebe291d189 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c | |||
@@ -442,7 +442,7 @@ void drm_mode_remove(struct drm_connector *connector, | |||
442 | struct drm_display_mode *mode) | 442 | struct drm_display_mode *mode) |
443 | { | 443 | { |
444 | list_del(&mode->head); | 444 | list_del(&mode->head); |
445 | kfree(mode); | 445 | drm_mode_destroy(connector->dev, mode); |
446 | } | 446 | } |
447 | EXPORT_SYMBOL(drm_mode_remove); | 447 | EXPORT_SYMBOL(drm_mode_remove); |
448 | 448 | ||