diff options
author | Kevin Wolf <kwolf@redhat.com> | 2018-06-26 13:22:45 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2018-06-29 14:20:56 +0200 |
commit | ae5475e82fd1ebb24f4f77cf28f59ca6548c6136 (patch) | |
tree | 961e73eb68a76836836b95ed180153345e54e6d2 /pc-bios/QEMU,cgthree.bin | |
parent | 7c8952697e9c44931090251e142c1d3108c22be4 (diff) | |
download | qemu-ae5475e82fd1ebb24f4f77cf28f59ca6548c6136.zip qemu-ae5475e82fd1ebb24f4f77cf28f59ca6548c6136.tar.gz qemu-ae5475e82fd1ebb24f4f77cf28f59ca6548c6136.tar.bz2 |
qcow2: Fix qcow2_truncate() error return value
If qcow2_alloc_clusters_at() returns an error, we do need to negate it
to get back the positive errno code for error_setg_errno(), but we still
need to return the negative error code.
Fixes: 772d1f973f87269f6a4a4ea4b880680f3779bbdf
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'pc-bios/QEMU,cgthree.bin')
0 files changed, 0 insertions, 0 deletions