Skip to contentSkip to conversation

trivial patch for btrfs-progs

PATCH New Arvin Schnell 1 participant 1 message Jan 17, 2013 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trivial patch for btrfs-progs

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

Signature · 6 lines
Arvin Schnell, <[email protected]>
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
cmds-send.c +1 -0
index 9b47e70..aa8c5a3 100644
@@ -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];