Message ID | 1379698931-946-9-git-send-email-stefanha@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/block/qcow2-snapshot.c b/block/qcow2-snapshot.c index 7d14420..5e8a779 100644 --- a/block/qcow2-snapshot.c +++ b/block/qcow2-snapshot.c @@ -192,7 +192,7 @@ static int qcow2_write_snapshots(BlockDriverState *bs) /* The snapshot list position has not yet been updated, so these clusters * must indeed be completely free */ ret = qcow2_pre_write_overlap_check(bs, QCOW2_OL_DEFAULT, offset, - s->snapshots_size); + snapshots_size); if (ret < 0) { return ret; }