commit | e3f652b33228e16e117a93fb919c4e1e4753f5a5 | [log] [tgz] |
---|---|---|
author | Kevin Wolf <kwolf@redhat.com> | Wed Nov 16 17:30:33 2011 +0100 |
committer | Kevin Wolf <kwolf@redhat.com> | Mon Dec 05 14:51:36 2011 +0100 |
tree | ed0bc47d5b8fad689779ac4935bc18d6fdcf4497 | |
parent | 9a4767809fe9ac184806bef38be2e2a84e451a65 [diff] |
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>