Commit 24c98006 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

dump: Don't dump file params with on-stack values in dump_task_fs

Ad addition to commit 63000f5b,
this place was missed to fix.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent b6b9e8dc
...@@ -547,7 +547,7 @@ err: ...@@ -547,7 +547,7 @@ err:
static int dump_task_fs(pid_t pid, struct cr_fdset *fdset) static int dump_task_fs(pid_t pid, struct cr_fdset *fdset)
{ {
struct fd_parms p; struct fd_parms p = { .fd = FD_DESC_INVALID, };
struct fs_entry fe; struct fs_entry fe;
int fd, ret; int fd, ret;
...@@ -560,9 +560,6 @@ static int dump_task_fs(pid_t pid, struct cr_fdset *fdset) ...@@ -560,9 +560,6 @@ static int dump_task_fs(pid_t pid, struct cr_fdset *fdset)
return -1; return -1;
} }
p.flags = 0;
p.pos = 0;
p.fown = (fown_t){ };
fe.cwd_id = fd_id_generate_special(); fe.cwd_id = fd_id_generate_special();
ret = dump_one_reg_file(fd, fe.cwd_id, &p); ret = dump_one_reg_file(fd, fe.cwd_id, &p);
...@@ -580,8 +577,6 @@ static int dump_task_fs(pid_t pid, struct cr_fdset *fdset) ...@@ -580,8 +577,6 @@ static int dump_task_fs(pid_t pid, struct cr_fdset *fdset)
return -1; return -1;
} }
p.flags = 0;
p.pos = 0;
fe.root_id = fd_id_generate_special(); fe.root_id = fd_id_generate_special();
ret = dump_one_reg_file(fd, fe.root_id, &p); ret = dump_one_reg_file(fd, fe.root_id, &p);
......
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