mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 03:08:15 +02:00
release can happen before dev->ctxlist is allocated
This commit is contained in:
parent
1b4ce02506
commit
e2ba08d283
1 changed files with 1 additions and 1 deletions
|
|
@ -401,7 +401,7 @@ int drm_release(struct inode *inode, struct file *filp)
|
|||
drm_fasync(-1, filp, 0);
|
||||
|
||||
down(&dev->ctxlist_sem);
|
||||
if (!list_empty(&dev->ctxlist->head)) {
|
||||
if (dev->ctxlist && (!list_empty(&dev->ctxlist->head))) {
|
||||
drm_ctx_list_t *pos, *n;
|
||||
|
||||
list_for_each_entry_safe(pos, n, &dev->ctxlist->head, head) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue