summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2018-03-22 12:26:27 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2018-03-22 12:26:27 +0000
commite1992aa14269215d7fd76eaef994e07866c70be2 (patch)
treebf06f64d0cc40fe8ce044befaa20755ea674d79f
parentbb0f707ee31bd22d7ab3ae85a948cc8c31c68c61 (diff)
Notes
-rw-r--r--sys/compat/linuxkpi/common/include/linux/pci.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h
index 70e62b0a7db9..d5d621cd1a3e 100644
--- a/sys/compat/linuxkpi/common/include/linux/pci.h
+++ b/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -425,6 +425,15 @@ pci_disable_msix(struct pci_dev *pdev)
{
pci_release_msi(pdev->dev.bsddev);
+
+ /*
+ * The MSIX IRQ numbers associated with this PCI device are no
+ * longer valid and might be re-assigned. Make sure
+ * linux_pci_find_irq_dev() does no longer see them by
+ * resetting their references to zero:
+ */
+ pdev->dev.msix = 0;
+ pdev->dev.msix_max = 0;
}
static inline bus_addr_t