Skip to content

Commit 7e4e958

Browse files
committed
Merge branch 'remotes/lorenzo/pci/vmd'
- Detach VMD resources after stopping root bus to prevent orphan resources (Jon Derrick) * remotes/lorenzo/pci/vmd: PCI: vmd: Detach resources after stopping root bus
2 parents 4dd4d99 + dc8af3a commit 7e4e958

File tree

1 file changed

+1
-1
lines changed
  • drivers/pci/controller

1 file changed

+1
-1
lines changed

drivers/pci/controller/vmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,12 +813,12 @@ static void vmd_remove(struct pci_dev *dev)
813813
{
814814
struct vmd_dev *vmd = pci_get_drvdata(dev);
815815

816-
vmd_detach_resources(vmd);
817816
sysfs_remove_link(&vmd->dev->dev.kobj, "domain");
818817
pci_stop_root_bus(vmd->bus);
819818
pci_remove_root_bus(vmd->bus);
820819
vmd_cleanup_srcu(vmd);
821820
vmd_teardown_dma_ops(vmd);
821+
vmd_detach_resources(vmd);
822822
irq_domain_remove(vmd->irq_domain);
823823
}
824824

0 commit comments

Comments
 (0)