Jan Beulich d1d111e073 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>
2016-11-08 15:35:17 -06:00
..
2016-10-07 20:19:31 -07:00
2016-10-03 09:42:57 -05:00
2015-08-13 15:59:59 -05:00
2016-10-03 09:43:21 -05:00
2014-06-10 20:20:19 -06:00
2016-10-07 11:46:37 -07:00
2016-10-03 09:43:21 -05:00
2016-10-03 09:42:57 -05:00
2014-06-10 20:20:19 -06:00
2016-06-20 13:24:20 -05:00