Skip to content
Snippets Groups Projects
user avatar
Jagannathan Raman authored
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: default avatarMax Reitz <mreitz@redhat.com>
Signed-off-by: default avatarJagannathan Raman <jag.raman@oracle.com>
Fixes: bebab91e
  (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: default avatarDaniel P. Berrangé <berrange@redhat.com>
Signed-off-by: default avatarEric Blake <eblake@redhat.com>
c90e3512
History
Name Last commit Last update
..