Obviously it can only work if LOCAL_ACTIVE() == T.
Signed-off-by: Oleg Nesterov <oleg(a)redhat.com>
---
kernel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel.c b/kernel.c
index e73d6fe..65e71ec 100644
--- a/kernel.c
+++ b/kernel.c
@@ -8448,7 +8448,7 @@ panic_this_kernel(void)
{
pid_t zero_pid = 0;
- if (DUMPFILE())
+ if (!LOCAL_ACTIVE())
error(FATAL, "cannot panic a dumpfile!\n");
if (!(pc->flags & MFD_RDWR) || (pc->flags & MEMMOD))
--
2.5.0