tools: libxl: Refix "Initialise the fd of the unused half of a datacopier"
authorIan Campbell <ian.campbell@citrix.com>
Tue, 21 Jul 2015 15:00:19 +0000 (16:00 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 21 Jul 2015 15:03:15 +0000 (16:03 +0100)
Applying the series out of order led to d72befc35f31 "tools/libxl:
Identify copywhat in stream v2 datacopiers" unintentionally reverting
part of 21d9b079e538 "tools/libxl: Initialise the fd of the unused
half of a datacopier".

Put this back.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_stream_read.c

index 3e1cd2aba57317e6c55da9fdb71e5d2a640dce5c..32a35518e0de9fd18ef88a48b256676e2e3c5755 100644 (file)
@@ -611,6 +611,7 @@ static void write_emulator_blob(libxl__egc *egc,
     dc->writewhat  = "qemu save file";
     dc->copywhat   = "restore v2 stream";
     dc->writefd    = writefd;
+    dc->readfd     = -1;
     dc->maxsz      = -1;
     dc->callback   = write_emulator_done;