summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordumbbell <dumbbell@FreeBSD.org>2013-03-05 11:18:57 +0000
committerdumbbell <dumbbell@FreeBSD.org>2013-03-05 11:18:57 +0000
commitf7c80cdae5621b8da47d8a8ea4633c4305f524df (patch)
treed8fbbfd68913b621614fa255786e6328e041f8ba
parent3b587f502e1f4043995193a94d24e0f72b69ca6e (diff)
downloadFreeBSD-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@)
-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 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);
}
}
OpenPOWER on IntegriCloud