diff options
author | Max Reitz | 2019-10-11 17:28:01 +0200 |
---|---|---|
committer | Max Reitz | 2019-10-28 11:51:09 +0100 |
commit | ecf6c7c0c1e5e6883f0e245a7b47101b69dc8235 (patch) | |
tree | f56352f9c8735590a9205a0964ad94b4c1a5285b /block/qcow2.c | |
parent | qcow2: Use endof() (diff) | |
download | qemu-ecf6c7c0c1e5e6883f0e245a7b47101b69dc8235.tar.gz qemu-ecf6c7c0c1e5e6883f0e245a7b47101b69dc8235.tar.xz qemu-ecf6c7c0c1e5e6883f0e245a7b47101b69dc8235.zip |
qcow2: Add Error ** to qcow2_read_snapshots()
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20191011152814.14791-4-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block/qcow2.c')
-rw-r--r-- | block/qcow2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/block/qcow2.c b/block/qcow2.c index 0bc69e6996..60ed084e5c 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -1584,9 +1584,8 @@ static int coroutine_fn qcow2_do_open(BlockDriverState *bs, QDict *options, s->snapshots_offset = header.snapshots_offset; s->nb_snapshots = header.nb_snapshots; - ret = qcow2_read_snapshots(bs); + ret = qcow2_read_snapshots(bs, errp); if (ret < 0) { - error_setg_errno(errp, -ret, "Could not read snapshots"); goto fail; } |