diff --git a/src/util/virpci.c b/src/util/virpci.c index 10e95bd8b0..1108ef2bd5 100644 --- a/src/util/virpci.c +++ b/src/util/virpci.c @@ -1266,7 +1266,7 @@ virPCIDeviceReattach(virPCIDevicePtr dev, /* Steal the dev from list inactiveDevs */ if (inactiveDevs) - virPCIDeviceListSteal(inactiveDevs, dev); + virPCIDeviceListDel(inactiveDevs, dev); return 0; }