Commit 475aa872 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

restore: check_core -- Move core->ids check under separate if() statement

We will need to extend non-zombie tests.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 71a65a96
...@@ -467,9 +467,11 @@ static int check_core(int pid, CoreEntry *core) ...@@ -467,9 +467,11 @@ static int check_core(int pid, CoreEntry *core)
goto out; goto out;
} }
if (!core->ids && core->tc->task_state != TASK_DEAD) { if (core->tc->task_state != TASK_DEAD) {
pr_err("Core IDS data missed for non-zombie\n"); if (!core->ids) {
goto out; pr_err("Core IDS data missed for non-zombie\n");
goto out;
}
} }
ret = 0; ret = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment