diff options
author | 2016-11-08 00:43:54 -0700 | |
---|---|---|
committer | 2016-11-08 15:35:17 -0600 | |
commit | d1d111e073840b8dbc1ae90ba3fc274736451bdc (patch) | |
tree | 466bcceba53fe029c80f581242e388064ab23fa4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 4.9-rc1 (diff) | |
download | wireguard-linux-d1d111e073840b8dbc1ae90ba3fc274736451bdc.tar.xz wireguard-linux-d1d111e073840b8dbc1ae90ba3fc274736451bdc.zip |
PCI/MSI: Check for NULL affinity mask in pci_irq_get_affinity()
If msi_setup_entry() fails to allocate an affinity mask, it logs a message
but continues on and allocates an MSI entry with entry->affinity == NULL.
Check for this case in pci_irq_get_affinity() so we don't try to
dereference a NULL pointer.
[bhelgaas: changelog]
Fixes: ee8d41e53efe "pci/msi: Retrieve affinity for a vector"
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
CC: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions