Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 414428c5 authored by Long Li's avatar Long Li Committed by Bjorn Helgaas
Browse files

PCI: hv: Lock PCI bus on device eject



A PCI_EJECT message can arrive at the same time we are calling
pci_scan_child_bus() in the workqueue for the previous PCI_BUS_RELATIONS
message or in create_root_hv_pci_bus().  In this case we could potentially
modify the bus from multiple places.

Properly lock the bus access.

Thanks Dexuan Cui <decui@microsoft.com> for pointing out the race condition
in create_root_hv_pci_bus().

Reported-by: default avatarXiaofeng Wang <xiaofwan@redhat.com>
Signed-off-by: default avatarLong Li <longli@microsoft.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Acked-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
parent d3a78d8b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment