diff options
author | Kevin Wolf <kwolf@redhat.com> | 2011-11-16 17:30:33 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-12-05 14:51:36 +0100 |
commit | e3f652b33228e16e117a93fb919c4e1e4753f5a5 (patch) | |
tree | ed0bc47d5b8fad689779ac4935bc18d6fdcf4497 /linux-user | |
parent | 9a4767809fe9ac184806bef38be2e2a84e451a65 (diff) | |
download | qemu-e3f652b33228e16e117a93fb919c4e1e4753f5a5.zip qemu-e3f652b33228e16e117a93fb919c4e1e4753f5a5.tar.gz qemu-e3f652b33228e16e117a93fb919c4e1e4753f5a5.tar.bz2 |
qcow2: Fix error path in qcow2_snapshot_load_tmp
If the bdrv_read() of the snapshot's L1 table fails, return the right
error code and make sure that the old L1 table is still loaded and we
don't break the BlockDriverState completely.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions