svn commit: r247839 - head/sys/dev/drm2

Jean-Sebastien Pedron dumbbell at FreeBSD.org
Tue Mar 5 11:18:58 UTC 2013


Author: dumbbell
Date: Tue Mar  5 11:18:57 2013
New Revision: 247839
URL: http://svnweb.freebsd.org/changeset/base/247839

Log:
  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 at zedat.fu-berlin.de> (build error)
  Reviewed by:	Konstantin Belousov (kib@)

Modified:
  head/sys/dev/drm2/drm_global.c

Modified: head/sys/dev/drm2/drm_global.c
==============================================================================
--- head/sys/dev/drm2/drm_global.c	Tue Mar  5 11:02:38 2013	(r247838)
+++ head/sys/dev/drm2/drm_global.c	Tue Mar  5 11:18:57 2013	(r247839)
@@ -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);
 	}
 }
 


More information about the svn-src-all mailing list