diff options
author | Roel Kluin <[roel.kluin@gmail.com]> | 2009-08-11 14:52:11 -0700 |
---|---|---|
committer | Fenghua Yu <fenghua.yu@intel.com> | 2009-08-11 14:52:11 -0700 |
commit | e7369e01eb85550ed60dd1b0e120b69dfb03dc23 (patch) | |
tree | a833d98ed9388f3a1d1072fb73cea1ac529256f0 /arch/ia64/kernel/iosapic.c | |
parent | 5359dffd4396f281c5b77de1acbee6fb1b333b23 (diff) |
arch/ia64/kernel/iosapic: missing test after ioremap()
Missing test after ioremap()
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Fenghua Yu <fenghua.yu@intel.com>
Diffstat (limited to 'arch/ia64/kernel/iosapic.c')
-rw-r--r-- | arch/ia64/kernel/iosapic.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/ia64/kernel/iosapic.c b/arch/ia64/kernel/iosapic.c index c48b03f2b61..dab4d393908 100644 --- a/arch/ia64/kernel/iosapic.c +++ b/arch/ia64/kernel/iosapic.c @@ -1072,6 +1072,10 @@ iosapic_init (unsigned long phys_addr, unsigned int gsi_base) } addr = ioremap(phys_addr, 0); + if (addr == NULL) { + spin_unlock_irqrestore(&iosapic_lock, flags); + return -ENOMEM; + } ver = iosapic_version(addr); if ((err = iosapic_check_gsi_range(gsi_base, ver))) { iounmap(addr); |