Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scsi: mpt3sas: fix an out of bound write
cpu_msix_table is allocated to store online cpus, but pci_irq_get_affinity may return cpu_possible_mask which is then used to access cpu_msix_table. That causes bad user experience. Fix limits access to only online cpus, I've also added an additional test to protect from an unlikely change in cpu_online_mask. [mkp: checkpatch] Fixes: 1d55abc ("scsi: mpt3sas: switch to pci_alloc_irq_vectors") Signed-off-by: Tomas Henzl <[email protected]> Acked-by: Suganath Prabu Subramani <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
- Loading branch information