]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: hotplug: fix changeable media ejection
authorBjoern Walk <bwalk@linux.vnet.ibm.com>
Fri, 8 Jul 2016 10:30:26 +0000 (12:30 +0200)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 22 Jul 2016 10:50:32 +0000 (06:50 -0400)
commit6574a01a439cb86a2e53c72346ada8bc9033d140
tree4744b636576b5877f32c84b380bd4124b3682fec
parentf96cd890a8fd847e7a1073240f06cbd8361b7582
qemu: hotplug: fix changeable media ejection

Since return code is checked globally at the end of the function, let's
make sure that we set it correctly at any point.

This fixes a regression introduced in commit 0aa19f35 where the first
command to eject changeable media would fail unconditionally.

Signed-off-by: Bjoern Walk <bwalk@linux.vnet.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
src/qemu/qemu_hotplug.c