Commit 1fc5c024 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

criu: pstree_switch_state -- Fix nil deref on error path

We may enter with @root_item = NULL in case of error
handling, so simply bail out.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 66ccd9a9
......@@ -463,6 +463,9 @@ void pstree_switch_state(struct pstree_item *root_item, int st)
{
struct pstree_item *item = root_item;
if (!root_item)
return;
if (st != TASK_DEAD)
freezer_restore_state();
......
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