diff options
author | Eric Blake <eblake@redhat.com> | 2017-11-11 19:39:36 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2017-11-17 08:02:45 -0600 |
commit | 08ace1d75372b57c5ab56aea02c71cdda4b58fdf (patch) | |
tree | 19d69a0088efc3bb85f0469798faeb25efc5331c /nbd/client.c | |
parent | fec035a53fa15c4c8c4e62bfef56a35df4161e38 (diff) | |
download | qemu-08ace1d75372b57c5ab56aea02c71cdda4b58fdf.zip qemu-08ace1d75372b57c5ab56aea02c71cdda4b58fdf.tar.gz qemu-08ace1d75372b57c5ab56aea02c71cdda4b58fdf.tar.bz2 |
nbd: Don't crash when server reports NBD_CMD_READ failure
If a server fails a read, for example with EIO, but the connection
is still live, then we would crash trying to print a non-existent
error message in nbd_client_co_preadv(). For consistency, also
change the error printout in nbd_read_reply_entry(), although that
instance does not crash. Bug introduced in commit f140e300.
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20171112013936.5942-1-eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Diffstat (limited to 'nbd/client.c')
0 files changed, 0 insertions, 0 deletions