summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/ptrace.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-10-03 18:18:17 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-03 18:18:17 +0200
commit95b866d5afcafee00fc9ad70665e48c86d8c4e0f (patch)
tree2e6521929f791b047e3ab8ab259d9247f1488f86 /arch/mips/kernel/ptrace.c
parentCheck mapped ranges on sysfs resource files (diff)
downloadlinux-95b866d5afcafee00fc9ad70665e48c86d8c4e0f.tar.xz
linux-95b866d5afcafee00fc9ad70665e48c86d8c4e0f.zip
e1000e: Fix incorrect debug warning
Doing 'WARN_ON(preempt_count())' was horribly horribly wrong, and would cause tons of warnings at bootup if PREEMPT was enabled because the initcalls currently run with the kernel lock, which increments the preempt count. At the same time, the warning was also insufficient, since it didn't check that interrupts were enabled. The proper debug function to use for something that can sleep and wants a warning if it's called in the wrong context is 'might_sleep()'. Reported-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/mips/kernel/ptrace.c')
0 files changed, 0 insertions, 0 deletions