diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-03-18 19:19:19 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-03-18 19:19:19 +0000 |
commit | bba572559e28fffe3ac466ad39c1dd85bc7bf584 (patch) | |
tree | 29ee7dc7de448663a38dd27470889b8c97d82e64 /target/linux/ar71xx | |
parent | 9fc4c21a432e3beb8e5e463133694ebe5b3f02a2 (diff) | |
download | upstream-bba572559e28fffe3ac466ad39c1dd85bc7bf584.tar.gz upstream-bba572559e28fffe3ac466ad39c1dd85bc7bf584.tar.bz2 upstream-bba572559e28fffe3ac466ad39c1dd85bc7bf584.zip |
ar71xx: check returned value of ioremap in ar71xx_pcibios_setup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20288 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/pci/pci-ar71xx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/pci/pci-ar71xx.c b/target/linux/ar71xx/files/arch/mips/pci/pci-ar71xx.c index 88eb917a5b..7d0eee9dbf 100644 --- a/target/linux/ar71xx/files/arch/mips/pci/pci-ar71xx.c +++ b/target/linux/ar71xx/files/arch/mips/pci/pci-ar71xx.c @@ -384,6 +384,8 @@ int __init ar71xx_pcibios_init(void) ar71xx_pcicfg_base = ioremap_nocache(AR71XX_PCI_CFG_BASE, AR71XX_PCI_CFG_SIZE); + if (ar71xx_pcicfg_base == NULL) + return -ENOMEM; __raw_writel(PCI_WIN0_OFFS, ddr_base + AR71XX_DDR_REG_PCI_WIN0); __raw_writel(PCI_WIN1_OFFS, ddr_base + AR71XX_DDR_REG_PCI_WIN1); |