aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2013-03-05 11:18:57 +0000
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2013-03-05 11:18:57 +0000
commitf0916543a66d19743299d76a851ca111893d8a64 (patch)
treed8fbbfd68913b621614fa255786e6328e041f8ba
parent9b7efb7458dc1ffec033ebad0d90afb835798d59 (diff)
downloadsrc-f0916543a66d19743299d76a851ca111893d8a64.tar.gz
src-f0916543a66d19743299d76a851ca111893d8a64.zip
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@)
Notes
Notes: svn path=/head/; revision=247839
-rw-r--r--sys/dev/drm2/drm_global.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/drm2/drm_global.c b/sys/dev/drm2/drm_global.c
index df208c819ad1..992d0613c7c6 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);
}
}