Skip to content

Commit b771845

Browse files
committed
Merge tag 'pci-v6.11-fixes-4' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci
Pull pci fix from Bjorn Helgaas: - Prevent a possible deadlock (reported by lockdep) when a driver relinquishes a pci_dev, another driver claims it, and one uses managed pcim_enable_device() and the other doesn't (Philipp Stanner) * tag 'pci-v6.11-fixes-4' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci: PCI: Fix potential deadlock in pcim_intx()
2 parents e936e7d + fc8c818 commit b771845

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/pci/devres.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,8 @@ static void pcim_disable_device(void *pdev_raw)
483483

484484
if (!pdev->pinned)
485485
pci_disable_device(pdev);
486+
487+
pdev->is_managed = false;
486488
}
487489

488490
/**

0 commit comments

Comments
 (0)