]> git.ipfire.org Git - thirdparty/qemu.git/commit
snapshot: fix referencing wrong variable in while loop in do_delvm
authorZhang Haoyu <zhanghy@sangfor.com>
Mon, 29 Sep 2014 08:38:02 +0000 (16:38 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 6 Jan 2015 21:55:00 +0000 (15:55 -0600)
commite2d402d0a115d3ceea649e72fe0d43c630e3fa22
treedcbb440364c941ed1327fe87298973e6099ba176
parent4d492e890925068e4e21b86fe14094ea054f74d9
snapshot: fix referencing wrong variable in while loop in do_delvm

The while loop variabal is "bs1",
but "bs" is always passed to bdrv_snapshot_delete_by_id_or_name.
Broken in commit a89d89d, v1.7.0.

Signed-off-by: Zhang Haoyu <zhanghy@sangfor.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit af957387547b05ed6dc4d84c10cca42700a7aeda)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
savevm.c