projects
/
profile
/
ivi
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d5b9f4
)
drm: use correct mode destructor
author
Dave Airlie
<airlied@redhat.com>
Thu, 24 Jul 2008 05:22:44 +0000
(15:22 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 24 Jul 2008 05:22:44 +0000
(15:22 +1000)
linux-core/drm_modes.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_modes.c
b/linux-core/drm_modes.c
index
4ee0030
..
d4cda0b
100644
(file)
--- a/
linux-core/drm_modes.c
+++ b/
linux-core/drm_modes.c
@@
-398,7
+398,7
@@
void drm_mode_prune_invalid(struct drm_device *dev,
drm_mode_debug_printmodeline(mode);
DRM_DEBUG("Not using %s mode %d\n", mode->name, mode->status);
}
-
kfree(
mode);
+
drm_mode_destroy(dev,
mode);
}
}
}
@@
-556,7
+556,7
@@
void drm_mode_connector_list_update(struct drm_connector *connector)
/* if equal delete the probed mode */
mode->status = pmode->status;
list_del(&pmode->head);
-
kfree(
pmode);
+
drm_mode_destroy(connector->dev,
pmode);
break;
}
}