]> git.baikalelectronics.ru Git - kernel.git/commit
lib/fault-inject.c: use correct check for interrupts
authorDmitry Vyukov <dvyukov@google.com>
Mon, 8 May 2017 22:56:51 +0000 (15:56 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 May 2017 00:15:12 +0000 (17:15 -0700)
commitc50878de32c7d2597c71c1f5674e9f3ef894cac8
treef9b7298389afda5d32bb4dae3e243816eb252f6f
parent10dcd78c14b57140bfdd827d75424da2a82983e8
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/20170321091805.140676-1-dvyukov@google.com
Signed-off-by: Dmitry Vyukov <dvyukov@google.com>
Reviewed-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/fault-inject.c