projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19def05
)
btrfs-progs: initialize data before send ioctl
author
Arvin Schnell
<aschnell@suse.de>
Sun, 20 Jan 2013 21:04:18 +0000
(16:04 -0500)
committer
David Sterba
<dsterba@suse.cz>
Mon, 21 Jan 2013 17:37:50 +0000
(18:37 +0100)
Likely not strictly needed but I noticed valgrind complaining about
uninitialised memory in the ioctl call.
Signed-off-by: Arvin Schnell <aschnell@suse.de>
cmds-send.c
patch
|
blob
|
history
diff --git
a/cmds-send.c
b/cmds-send.c
index
ac1d3cf
..
5607f2a
100644
(file)
--- a/
cmds-send.c
+++ b/
cmds-send.c
@@
-273,6
+273,7
@@
static int do_send(struct btrfs_send *send, u64 root_id, u64 parent_root)
goto out;
}
+ memset(&io_send, 0, sizeof(io_send));
io_send.send_fd = pipefd[1];
send->send_fd = pipefd[0];