Unmapping the MSI-X base mapping in the loops which allocate/free MSI descriptors is daft and in the way of allowing runtime expansion of MSI-X descriptors. Store the mapping in struct pci_dev and free it after freeing the MSI-X descriptors.
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -473,6 +473,7 @@ struct pci_dev { · 472 unmodified lines | |||
| 473 | u8 ptm_granularity; | 473 | u8 ptm_granularity; |
| 474 | #endif | 474 | #endif |
| 475 | #ifdef CONFIG_PCI_MSI | 475 | #ifdef CONFIG_PCI_MSI |
| 476 | void __iomem *msix_base; | ||
| 476 | const struct attribute_group **msi_irq_groups; | 477 | const struct attribute_group **msi_irq_groups; |
| 477 | #endif | 478 | #endif |
| 478 | struct pci_vpd vpd; | 479 | struct pci_vpd vpd; |