projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aefd330
)
drm crtc: use drm_mode_destroy instead of kfree in drm_mode_remove
author
Sascha Hauer
<s.hauer@pengutronix.de>
Wed, 1 Feb 2012 10:38:19 +0000
(11:38 +0100)
committer
Dave Airlie
<airlied@redhat.com>
Fri, 3 Feb 2012 09:50:38 +0000
(09:50 +0000)
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>
drivers/gpu/drm/drm_crtc.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_crtc.c
b/drivers/gpu/drm/drm_crtc.c
index c1a0d346b0c229b525c8e48b840717064bdc650d..33ebe291d189a4e6aba23a0d5b6abfc34fe03a82 100644
(file)
--- 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,
struct drm_display_mode *mode)
{
list_del(&mode->head);
-
kfree(
mode);
+
drm_mode_destroy(connector->dev,
mode);
}
EXPORT_SYMBOL(drm_mode_remove);