summaryrefslogtreecommitdiffstats
path: root/hw/ide/atapi.c
diff options
context:
space:
mode:
authorEric Blake2016-11-07 21:38:13 +0100
committerPaolo Bonzini2016-11-10 16:01:30 +0100
commita5068244b4f0c994791303b6186b6f732adab6c2 (patch)
treeddd9d91c164f50d07796dfc1b66beb76aeceb6c1 /hw/ide/atapi.c
parenttarget-i386: document how x86 gdb_num_core_regs is computed. (diff)
downloadqemu-a5068244b4f0c994791303b6186b6f732adab6c2.tar.gz
qemu-a5068244b4f0c994791303b6186b6f732adab6c2.tar.xz
qemu-a5068244b4f0c994791303b6186b6f732adab6c2.zip
nbd: Don't inf-loop on early EOF
Commit 7d3123e converted a single read_sync() into a while loop that assumed that read_sync() would either make progress or give an error. But when the server hangs up early, the client sees EOF (a read_sync() of 0) and never makes progress, which in turn caused qemu-iotest './check -nbd 83' to go into an infinite loop. Rework the loop to accomodate reads cut short by EOF. Reported-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <1478551093-32757-1-git-send-email-eblake@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/ide/atapi.c')
0 files changed, 0 insertions, 0 deletions