mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
lib/fault-inject.c: use correct check for interrupts
in_interrupt() also returns true when bh is disabled in task context. That's not what fail_task() wants to check. Use the new in_task() predicate that does the right thing. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Dmitry Vyukov <[email protected]> Reviewed-by: Akinobu Mita <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
f61e869d51
commit
f2ad37da80
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ static void fail_dump(struct fault_attr *attr)
|
|||
|
||||
static bool fail_task(struct fault_attr *attr, struct task_struct *task)
|
||||
{
|
||||
return !in_interrupt() && task->make_it_fail;
|
||||
return in_task() && task->make_it_fail;
|
||||
}
|
||||
|
||||
#define MAX_STACK_TRACE_DEPTH 32
|
||||
|
|
|
|||
Loading…
Reference in a new issue