diff options
author | dumbbell <dumbbell@FreeBSD.org> | 2013-03-05 11:18:57 +0000 |
---|---|---|
committer | dumbbell <dumbbell@FreeBSD.org> | 2013-03-05 11:18:57 +0000 |
commit | f7c80cdae5621b8da47d8a8ea4633c4305f524df (patch) | |
tree | d8fbbfd68913b621614fa255786e6328e041f8ba /sys/dev/drm2/drm_global.c | |
parent | 3b587f502e1f4043995193a94d24e0f72b69ca6e (diff) | |
download | FreeBSD-src-f7c80cdae5621b8da47d8a8ea4633c4305f524df.zip FreeBSD-src-f7c80cdae5621b8da47d8a8ea4633c4305f524df.tar.gz |
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@)
Diffstat (limited to 'sys/dev/drm2/drm_global.c')
-rw-r--r-- | sys/dev/drm2/drm_global.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/drm2/drm_global.c b/sys/dev/drm2/drm_global.c index df208c8..992d061 100644 --- a/sys/dev/drm2/drm_global.c +++ b/sys/dev/drm2/drm_global.c @@ -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); } } |