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