drm: don't remove mappings added by the driver

main
Dave Airlie 2007-11-15 16:51:48 +11:00
parent 12cbe1365b
commit 7136f55faa
1 changed files with 4 additions and 2 deletions

View File

@ -250,9 +250,11 @@ int drm_lastclose(struct drm_device * dev)
}
list_for_each_entry_safe(r_list, list_t, &dev->maplist, head) {
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) {
for (i = 0; i < dev->queue_count; i++) {