mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-04 22:40:19 +01:00
drm: don't remove mappings added by the driver
This commit is contained in:
parent
12cbe1365b
commit
7136f55faa
1 changed files with 4 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue