bcma: fix null pointer in bcma_core_pci_irq_ctl
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 5 Jun 2012 18:58:20 +0000 (20:58 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 8 Jun 2012 17:47:07 +0000 (13:47 -0400)
commite7027075d0d8fe2d1bf7b0db24623328d2601d3c
tree7406c50cc79ddf1c2bcfe7fd016a5fab8217a3b1
parente64add27e1b4874f589e550b4e0ca6715070373f
bcma: fix null pointer in bcma_core_pci_irq_ctl

pc could be null if hosttype != BCMA_HOSTTYPE_PCI.
If we are on a device without a pci core this function is called with
pc = null by b43 and brcmsmac. If the host type is PCI we have a pci
core as well and pc can not be null.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/driver_pci.c