diff options
author | Hidehiro Kawai <hidehiro.kawai.ez@hitachi.com> | 2016-03-22 21:27:24 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-22 22:36:02 (GMT) |
commit | abc514c58059ca6f02df41798e828ffd864f1d21 (patch) | |
tree | b19d5a3cead82b2a6d4af1f2fff63041f7f2960e /tools/net/bpf_dbg.c | |
parent | 73cbf4a1ddfab247f9018550637c28a7d8dd9108 (diff) | |
download | linux-abc514c58059ca6f02df41798e828ffd864f1d21.tar.xz |
hpwdt: use nmi_panic() when kernel panics in NMI handler
Commit 1717f2096b54 ("panic, x86: Fix re-entrance problem due to panic
on NMI") introduced nmi_panic() which prevents concurrent and recursive
execution of panic(). It also saves registers for the crash dump on x86
by later commit 58c5661f2144 ("panic, x86: Allow CPUs to save registers
even if looping in NMI context").
hpwdt driver can call panic() from NMI handler, so replace it with
nmi_panic(). Also, do some cleanups.
Signed-off-by: Hidehiro Kawai <hidehiro.kawai.ez@hitachi.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Cc: Thomas Mingarelli <thomas.mingarelli@hpe.com>
Cc: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/net/bpf_dbg.c')
0 files changed, 0 insertions, 0 deletions