mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
qcow2: Return real error code in qcow2_read_snapshots
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
parent
a968168c58
commit
42deb29fed
2 changed files with 23 additions and 7 deletions
|
@ -273,8 +273,9 @@ static int qcow2_open(BlockDriverState *bs, int flags)
|
|||
}
|
||||
bs->backing_file[len] = '\0';
|
||||
}
|
||||
if (qcow2_read_snapshots(bs) < 0) {
|
||||
ret = -EINVAL;
|
||||
|
||||
ret = qcow2_read_snapshots(bs);
|
||||
if (ret < 0) {
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue