qemu/io
Jagannathan Raman c90e3512a4 io: error_prepend() in qio_channel_readv_full_all() causes segfault
Using error_prepend() in qio_channel_readv_full_all() causes a segfault
as errp is not set when ret is 0. This results in the failure of iotest
83. Replacing with error_setg() fixes the problem.

Additionally, removes a full stop at the end of error message

Reported-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Fixes: bebab91ebd
  (io: add qio_channel_readv_full_all_eof & qio_channel_readv_full_all helpers)
Message-Id: <be476bcdb99e820fec0fa09fe8f04c9dd3e62473.1613128220.git.jag.raman@oracle.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
2021-02-12 07:50:59 -06:00
..
channel-buffer.c io: Fix Lesser GPL version number 2020-10-29 09:57:37 +00:00
channel-command.c io: Fix Lesser GPL version number 2020-10-29 09:57:37 +00:00
channel-file.c io: Fix Lesser GPL version number 2020-10-29 09:57:37 +00:00
channel-socket.c io: Fix Lesser GPL version number 2020-10-29 09:57:37 +00:00
channel-tls.c io/channel-tls.c: make qio_channel_tls_shutdown thread-safe 2021-01-13 10:21:17 +01:00
channel-util.c io: Fix Lesser GPL version number 2020-10-29 09:57:37 +00:00
channel-watch.c io: Fix Lesser GPL version number 2020-10-29 09:57:37 +00:00
channel-websock.c io: Don't use '#' flag of printf format 2020-10-29 09:57:37 +00:00
channel.c io: error_prepend() in qio_channel_readv_full_all() causes segfault 2021-02-12 07:50:59 -06:00
dns-resolver.c io: Fix Lesser GPL version number 2020-10-29 09:57:37 +00:00
meson.build meson: Propagate gnutls dependency 2021-01-12 12:38:03 +01:00
net-listener.c qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE 2020-09-18 14:12:32 -04:00
task.c io: Fix Lesser GPL version number 2020-10-29 09:57:37 +00:00
trace-events socket: Add num connections to qio_channel_socket_async() 2019-09-03 23:24:42 +02:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00