History

PCI/MSI: Sanitize MSI-X table map handling

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.

Thomas Gleixner committed 4 years ago

Commit 85aa6071 parent aa423ac2 files · +9 −10Browse files

Showing the changes to include (1 of 2 files). Show all

Unified · Split

include/linux/pci.h+1−0
@@ -473,6 +473,7 @@ struct pci_dev { · 472 unmodified lines
473 u8 ptm_granularity;473 u8 ptm_granularity;
474#endif474#endif
475#ifdef CONFIG_PCI_MSI475#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#endif478#endif
478 struct pci_vpd vpd;479 struct pci_vpd vpd;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t