Commit a20011ac authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

ns: initialize nsid in rst_add_ns_id

Execute zdtm/live/static/pipe00
./pipe00 --pidfile=pipe00.pid --outfile=pipe00.out
Dump 3158
Restore
test/zdtm.sh: line 472:  3173 Segmentation fault      (core dumped) setsid  restore --file-locks --tcp-established -x -D  -o

Reported-by: Jenkins Criuovich
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 8d5822d9
......@@ -147,7 +147,8 @@ int rst_add_ns_id(unsigned int id, pid_t pid, struct ns_desc *nd)
}
}
if (rst_new_ns_id(id, pid, nd) == NULL)
nsid = rst_new_ns_id(id, pid, nd);
if (nsid == NULL)
return -1;
pr_info("Add namespace %d pid %d\n", nsid->id, nsid->pid);
......
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