diff --git a/AUTHORS b/AUTHORS index 3a961c9a4c..58a7303bf2 100644 --- a/AUTHORS +++ b/AUTHORS @@ -261,6 +261,7 @@ Patches have also been contributed by: J.B. Joret Stefan Hajnoczi Gene Czarcinski + Nishank Trivedi [....send patches to get your name here....] diff --git a/src/util/virnetdevvportprofile.c b/src/util/virnetdevvportprofile.c index 52133782fd..fbbdde91ac 100644 --- a/src/util/virnetdevvportprofile.c +++ b/src/util/virnetdevvportprofile.c @@ -1235,7 +1235,8 @@ virNetDevVPortProfileDisassociate(const char *macvtap_ifname, /* avoid disassociating twice */ if (vmOp == VIR_NETDEV_VPORT_PROFILE_OP_MIGRATE_IN_FINISH) break; - ignore_value(virNetDevSetOnline(linkdev, false)); + if (vf < 0) + ignore_value(virNetDevSetOnline(linkdev, false)); rc = virNetDevVPortProfileOp8021Qbh(linkdev, macvtap_macaddr, vf, virtPort, NULL, VIR_NETDEV_VPORT_PROFILE_LINK_OP_DISASSOCIATE);