qcow2: Check qcow2_alloc_clusters_at() return value
authorKevin Wolf <kwolf@redhat.com>
Thu, 24 May 2012 10:56:32 +0000 (12:56 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 25 May 2012 16:12:54 +0000 (18:12 +0200)
commitdf021791897cb7a171710dadf66648b4379de627
tree4f0f2c1b77f897f3e25397f1dfcf75ee2b8c8c5f
parentb6fc8245e96dea6b7198a46e883d107403ddb90c
qcow2: Check qcow2_alloc_clusters_at() return value

When using qcow2_alloc_clusters_at(), the cluster allocation code
checked the wrong variable for an error code.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-cluster.c