mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
sched: Taint kernel with TAINT_WARN after sleep-in-atomic bug
Usually sleep-in-atomic bugs are followed by dozens other warnings. This patch should help to figure out original source of problem. Signed-off-by: Konstantin Khlebnikov <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/20120510122004.4873.12726.stgit@zurg Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
8e7fbcbc22
commit
1c2927f185
1 changed files with 1 additions and 0 deletions
|
|
@ -3138,6 +3138,7 @@ static noinline void __schedule_bug(struct task_struct *prev)
|
|||
if (irqs_disabled())
|
||||
print_irqtrace_events(prev);
|
||||
dump_stack();
|
||||
add_taint(TAINT_WARN);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue