From 1b9dfb678ca2559c521591cda6c8d7bfb3ab06df Mon Sep 17 00:00:00 2001 From: hauke Date: Fri, 18 May 2012 15:46:30 +0000 Subject: brcm47xx: bcma: fix null pointer git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31789 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../233-bcma-fix-NP-in-bcma_core_pci_irq_ctl.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 target/linux/brcm47xx/patches-3.3/233-bcma-fix-NP-in-bcma_core_pci_irq_ctl.patch (limited to 'target/linux/brcm47xx') diff --git a/target/linux/brcm47xx/patches-3.3/233-bcma-fix-NP-in-bcma_core_pci_irq_ctl.patch b/target/linux/brcm47xx/patches-3.3/233-bcma-fix-NP-in-bcma_core_pci_irq_ctl.patch new file mode 100644 index 0000000000..9843f973a8 --- /dev/null +++ b/target/linux/brcm47xx/patches-3.3/233-bcma-fix-NP-in-bcma_core_pci_irq_ctl.patch @@ -0,0 +1,20 @@ +--- a/drivers/bcma/driver_pci.c ++++ b/drivers/bcma/driver_pci.c +@@ -232,7 +232,7 @@ void __devinit bcma_core_pci_init(struct + int bcma_core_pci_irq_ctl(struct bcma_drv_pci *pc, struct bcma_device *core, + bool enable) + { +- struct pci_dev *pdev = pc->core->bus->host_pci; ++ struct pci_dev *pdev; + u32 coremask, tmp; + int err = 0; + +@@ -243,6 +243,8 @@ int bcma_core_pci_irq_ctl(struct bcma_dr + goto out; + } + ++ pdev = pc->core->bus->host_pci; ++ + err = pci_read_config_dword(pdev, BCMA_PCI_IRQMASK, &tmp); + if (err) + goto out; -- cgit v1.2.3