patch-2.3.7 linux/include/asm-i386/smplock.h
Next file: linux/include/asm-sparc/namei.h
Previous file: linux/include/asm-i386/page.h
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Sun Jun 20 17:46:15 1999
- Orig file:
v2.3.6/linux/include/asm-i386/smplock.h
- Orig date:
Tue Jun 8 23:03:41 1999
diff -u --recursive --new-file v2.3.6/linux/include/asm-i386/smplock.h linux/include/asm-i386/smplock.h
@@ -49,6 +49,8 @@
extern __inline__ void unlock_kernel(void)
{
+ if (current->lock_depth < 0)
+ BUG();
__asm__ __volatile__(
"decl %1\n\t"
"jns 9f\n\t"
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)