drm: don't remove mappings added by the driver
parent
12cbe1365b
commit
7136f55faa
|
@ -250,8 +250,10 @@ int drm_lastclose(struct drm_device * dev)
|
||||||
}
|
}
|
||||||
|
|
||||||
list_for_each_entry_safe(r_list, list_t, &dev->maplist, head) {
|
list_for_each_entry_safe(r_list, list_t, &dev->maplist, head) {
|
||||||
drm_rmmap_locked(dev, r_list->map);
|
if (!(r_list->map->flags & _DRM_DRIVER)) {
|
||||||
r_list = NULL;
|
drm_rmmap_locked(dev, r_list->map);
|
||||||
|
r_list = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (drm_core_check_feature(dev, DRIVER_DMA_QUEUE) && dev->queuelist) {
|
if (drm_core_check_feature(dev, DRIVER_DMA_QUEUE) && dev->queuelist) {
|
||||||
|
|
Loading…
Reference in New Issue