patch-2.3.32 linux/include/asm-i386/spinlock.h

Next file: linux/include/asm-i386/string-486.h
Previous file: linux/include/asm-i386/resource.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.31/linux/include/asm-i386/spinlock.h linux/include/asm-i386/spinlock.h
@@ -88,6 +88,8 @@
 #if SPINLOCK_DEBUG
 	if (lock->magic != SPINLOCK_MAGIC)
 		BUG();
+	if (!lock->lock)
+		BUG();
 #endif
 	__asm__ __volatile__(
 		spin_unlock_string

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)