um: virt-pci: properly remove PCI device from bus
authorBenjamin Berg <benjamin.berg@intel.com>
Thu, 9 Feb 2023 09:00:05 +0000 (10:00 +0100)
committerRichard Weinberger <richard@nod.at>
Mon, 13 Feb 2023 09:14:32 +0000 (10:14 +0100)
commit339b84dcd7113dd076419ea2a47128cc53450305
tree9988cf56ec14540a8e734e25f6c14e49ab5a1f35
parentabdeb4fa5e1b5b4918034f02236fd886f40c20c1
um: virt-pci: properly remove PCI device from bus

Triggering a bus rescan will not cause the PCI device to be removed. It
is required to explicitly stop and remove the device from the bus.

Fixes: 68f5d3f3b654 ("um: add PCI over virtio emulation driver")
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/virt-pci.c