]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virNetDevMacVLanCreateWithVPortProfile: Don't mask virNetDevMacVLanTapOpen error
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 9 Aug 2016 16:47:49 +0000 (18:47 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 10 Aug 2016 14:54:41 +0000 (16:54 +0200)
commit96e24861564dfdc21b843f00d094d71e696366bd
tree3022ad1040392e33183fbb18b6a3fcc4b71126a2
parent856965b36246b26002af409262846317477ea631
virNetDevMacVLanCreateWithVPortProfile: Don't mask virNetDevMacVLanTapOpen error

https://bugzilla.redhat.com/show_bug.cgi?id=1240439

In this function we create a macvtap device and open its tap
device. Possibly multiple times. Now the thing is, if opening the
tap device fails, that is virNetDevMacVLanTapOpen() returns a
negative value, we unroll all the changes BUT return 0 fooling
caller into thinking everything went okay.

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