drm_global.c: Destroy sx in drm_global_release()
This fixes a build error at the same time (unused variable "item"), if the kernel is compiled without INVARIANTS. Reported by: Hartmann, O. <ohartman@zedat.fu-berlin.de> (build error) Reviewed by: Konstantin Belousov (kib@)
This commit is contained in:
parent
3b587f502e
commit
f7c80cdae5
@ -63,6 +63,7 @@ void drm_global_release(void)
|
||||
struct drm_global_item *item = &glob[i];
|
||||
MPASS(item->object == NULL);
|
||||
MPASS(item->refcount == 0);
|
||||
sx_destroy(&item->mutex);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user