qcow2: Fix error handling in qcow_save_vmstate
authorKevin Wolf <kwolf@redhat.com>
Wed, 20 Jan 2010 14:02:59 +0000 (15:02 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 26 Jan 2010 20:59:19 +0000 (14:59 -0600)
commit36691758fbbe86be194da5dcd4dde0312ed8ffc3
treef9133da3306512ae817f6dc84a3804f0274d7c00
parent1b7747c0a5715189ce9cfb03e496ed243955dd9e
qcow2: Fix error handling in qcow_save_vmstate

Don't assume success but pass the bdrv_pwrite return value on.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block/qcow2.c