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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:57:27 +0000 (13:57 +0100)
commita27e95a6ff3fd633422ca44c6d571ef84392f5b8
tree4b4f3962a0cc1239e900938bea1da92b370725c8
parent6c738b8805c6d45429458a0c7e8a24f4f3cce828
um: virt-pci: properly remove PCI device from bus

[ Upstream commit 339b84dcd7113dd076419ea2a47128cc53450305 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/um/drivers/virt-pci.c