]> xenbits.xensource.com Git - libvirt.git/commit
qemuDomainAttachNetDevice: Don't overwrite error on rollback
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 25 Oct 2016 10:16:36 +0000 (12:16 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 10 Nov 2016 15:47:32 +0000 (16:47 +0100)
commit0e82fa4c345acb7ad52e0da0e54f7375eda57657
tree541d2636a510237b0316a5450a7689376f4677a1
parent5672a265ce061827595be2270f29e8eb920313bd
qemuDomainAttachNetDevice: Don't overwrite error on rollback

If there is an error hotpluging a net device (for whatever
reason) a rollback operation is performed. However, whilst doing
so various helper functions that are called report errors on
their own. This results in the original error to be overwritten
and thus misleading the user.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_hotplug.c