* [PATCH] trivial patch for btrfs-progs
@ 2013-01-17 15:09 Arvin Schnell
0 siblings, 0 replies; only message in thread
From: Arvin Schnell @ 2013-01-17 15:09 UTC (permalink / raw)
To: chris.mason, linux-btrfs
[-- Attachment #1: Type: text/plain, Size: 413 bytes --]
Hi,
please find attached a trivial patch for btrfs-progs. Likely not
strictly needed but I noticed valgrind complaining about
uninitialised memory in the ioctl call.
Regards,
Arvin
--
Arvin Schnell, <aschnell@suse.de>
Senior Software Engineer, Research & Development
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
Maxfeldstraße 5
90409 Nürnberg
Germany
[-- Attachment #2: memset.diff --]
[-- Type: text/x-patch, Size: 320 bytes --]
diff --git a/cmds-send.c b/cmds-send.c
index 9b47e70..aa8c5a3 100644
--- a/cmds-send.c
+++ b/cmds-send.c
@@ -271,6 +271,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];
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-01-17 15:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-17 15:09 [PATCH] trivial patch for btrfs-progs Arvin Schnell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).