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:55:23 +0000 (13:55 +0100)
commita02a91057652d98a1445808070ae5e968417741b
treec9f81dfb51253ef7f9de78a6c17844e7e4c51d6f
parente38d2adf110c5ea079b41ced00984425757a8b80
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