projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12cbe13
)
drm: don't remove mappings added by the driver
author
Dave Airlie
<airlied@linux.ie>
Thu, 15 Nov 2007 05:51:48 +0000
(16:51 +1100)
committer
Dave Airlie
<airlied@linux.ie>
Thu, 15 Nov 2007 05:51:48 +0000
(16:51 +1100)
linux-core/drm_drv.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_drv.c
b/linux-core/drm_drv.c
index
8313b3e
..
99eba97
100644
(file)
--- a/
linux-core/drm_drv.c
+++ b/
linux-core/drm_drv.c
@@
-250,8
+250,10
@@
int drm_lastclose(struct drm_device * dev)
}
list_for_each_entry_safe(r_list, list_t, &dev->maplist, head) {
- drm_rmmap_locked(dev, r_list->map);
- r_list = NULL;
+ if (!(r_list->map->flags & _DRM_DRIVER)) {
+ drm_rmmap_locked(dev, r_list->map);
+ r_list = NULL;
+ }
}
if (drm_core_check_feature(dev, DRIVER_DMA_QUEUE) && dev->queuelist) {