Commit 3ece3e8
committed
PCI/MSI: Handle the NOMASK flag correctly for all PCI/MSI backends
The conversion of the XEN specific global variable pci_msi_ignore_mask to a
MSI domain flag, missed the facts that:
1) Legacy architectures do not provide a interrupt domain
2) Parent MSI domains do not necessarily have a domain info attached
Both cases result in an unconditional NULL pointer dereference. This was
unfortunatly missed in review and testing revealed it late.
Cure this by using the existing pci_msi_domain_supports() helper, which
handles all possible cases correctly.
Fixes: c3164d2 ("PCI/MSI: Convert pci_msi_ignore_mask to per MSI domain flag")
Reported-by: Daniel Gomez <da.gomez@kernel.org>
Reported-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Juergen Gross <jgross@suse.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Borislav Petkov <bp@alien8.de>
Tested-by: Daniel Gomez <da.gomez@kernel.org>
Link: https://lore.kernel.org/all/87iknwyp2o.ffs@tglx
Closes: https://lore.kernel.org/all/qn7fzggcj6qe6r6gdbwcz23pzdz2jx64aldccmsuheabhmjgrt@tawf5nfwuvw71 parent dce3ab4 commit 3ece3e8
1 file changed
Lines changed: 6 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
289 | | - | |
290 | 288 | | |
291 | 289 | | |
292 | 290 | | |
| |||
297 | 295 | | |
298 | 296 | | |
299 | 297 | | |
300 | | - | |
| 298 | + | |
301 | 299 | | |
302 | 300 | | |
303 | 301 | | |
| |||
604 | 602 | | |
605 | 603 | | |
606 | 604 | | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | 605 | | |
611 | 606 | | |
612 | 607 | | |
613 | 608 | | |
614 | 609 | | |
615 | | - | |
616 | | - | |
617 | 610 | | |
618 | | - | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
619 | 614 | | |
620 | 615 | | |
| 616 | + | |
621 | 617 | | |
622 | 618 | | |
623 | 619 | | |
| |||
715 | 711 | | |
716 | 712 | | |
717 | 713 | | |
718 | | - | |
719 | | - | |
720 | 714 | | |
721 | 715 | | |
722 | 716 | | |
| |||
747 | 741 | | |
748 | 742 | | |
749 | 743 | | |
750 | | - | |
| 744 | + | |
751 | 745 | | |
752 | 746 | | |
753 | 747 | | |
| |||
0 commit comments