Skip to content

Commit

Permalink
arch/ia64/kernel/iosapic: missing test after ioremap()
Browse files Browse the repository at this point in the history
Missing test after ioremap()

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Fenghua Yu <fenghua.yu@intel.com>
  • Loading branch information
Roel Kluin authored and Fenghua Yu committed Aug 11, 2009
1 parent 5359dff commit e7369e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/ia64/kernel/iosapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e7369e0

Please sign in to comment.