]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2912c25f84811c0f3c47d5b12af0438d1d1313d5
treec9f81dfb51253ef7f9de78a6c17844e7e4c51d6f
parent6044655a135a015c66148287e3effca15e6bfc7f
um: virt-pci: properly remove PCI device from bus

[ Upstream commit e052eb11e30bd7744b4084e57c89f0b266f1d78e ]

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: 732559b790cd ("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