diff options
author | Dmitry Vyukov <[email protected]> | 2017-05-08 15:56:51 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2017-05-08 17:15:12 -0700 |
commit | f2ad37da805414e9385e7ca2961e1d0431df3799 (patch) | |
tree | f9b7298389afda5d32bb4dae3e243816eb252f6f /lib/netdev-notifier-error-inject.c | |
parent | f61e869d519c0c11a8d80a503cfdfb4897df855a (diff) |
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]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions