[Crash-utility] [PATCH v3 6/9] panic_this_kernel: check LOCAL_ACTIVE() rather than DUMPFILE()

Oleg Nesterov oleg at redhat.com
Tue May 3 17:36:11 UTC 2016


Obviously it can only work if LOCAL_ACTIVE() == T.

Signed-off-by: Oleg Nesterov <oleg at redhat.com>
---
 kernel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel.c b/kernel.c
index 5a392fc..d53249b 100644
--- a/kernel.c
+++ b/kernel.c
@@ -8452,7 +8452,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




More information about the Crash-utility mailing list