summaryrefslogtreecommitdiff
path: root/drivers/irqchip/irq-bcm7038-l1.c
diff options
context:
space:
mode:
authorJan Beulich <JBeulich@suse.com>2016-11-08 00:43:54 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-01-12 11:39:30 +0100
commit5cbea795f4d13184ff42307daea5a7dc7c046e5f (patch)
tree338fb007a2b3e5b6fd7fa1a94480c501e75330ba /drivers/irqchip/irq-bcm7038-l1.c
parent825e6a0f7c51cc2c7e56604d2ea89c86aebef914 (diff)
PCI/MSI: Check for NULL affinity mask in pci_irq_get_affinity()
commit d1d111e073840b8dbc1ae90ba3fc274736451bdc upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/irqchip/irq-bcm7038-l1.c')
0 files changed, 0 insertions, 0 deletions