Commit 76ef79a0 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

dump: Fix stack data written to image

I case if there is no file id provided we
might be writting stack data to image. Better
put zeros there.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 307260df
......@@ -122,6 +122,8 @@ static int dump_one_reg_file(int type, unsigned long fd_name, int lfd,
e.addr = fd_name;
if (id)
memcpy(e.id, id, FD_ID_SIZE);
else
memzero(e.id, FD_ID_SIZE);
pr_info("fdinfo: type: %2x len: %2x flags: %4x pos: %8x addr: %16lx\n",
type, len, flags, pos, fd_name);
......
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