summaryrefslogtreecommitdiff
path: root/bsd-core
diff options
context:
space:
mode:
authorRobert Noland <rnoland@2hip.net>2007-12-01 02:40:13 -0500
committerRobert Noland <rnoland@2hip.net>2007-12-01 02:40:13 -0500
commitd6295cc9ffe9f36f78131f8049baf24e77d35e15 (patch)
tree2d5473da833a1554580052384a050157284b5eb7 /bsd-core
parent83e62be6f449ad480eb590ee9d4131974c9920e2 (diff)
drm: Add _DRM_DRIVER map flag.
This flag indicates that the driver is responsible for the map.
Diffstat (limited to 'bsd-core')
-rw-r--r--bsd-core/drm_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bsd-core/drm_drv.c b/bsd-core/drm_drv.c
index 2e976107..96dc4d35 100644
--- a/bsd-core/drm_drv.c
+++ b/bsd-core/drm_drv.c
@@ -484,10 +484,10 @@ static int drm_lastclose(drm_device_t *dev)
}
TAILQ_FOREACH_SAFE(map, &dev->maplist, link, mapsave) {
- drm_rmmap(dev, map);
+ if (!(map->flags & _DRM_DRIVER))
+ drm_rmmap(dev, map);
}
-
drm_dma_takedown(dev);
if ( dev->lock.hw_lock ) {
dev->lock.hw_lock = NULL; /* SHM removed */