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>
This commit is contained in:
parent
5359dffd43
commit
e7369e01eb
1 changed files with 4 additions and 0 deletions
|
@ -1072,6 +1072,10 @@ iosapic_init (unsigned long phys_addr, unsigned int gsi_base)
|
||||||
}
|
}
|
||||||
|
|
||||||
addr = ioremap(phys_addr, 0);
|
addr = ioremap(phys_addr, 0);
|
||||||
|
if (addr == NULL) {
|
||||||
|
spin_unlock_irqrestore(&iosapic_lock, flags);
|
||||||
|
return -ENOMEM;
|
||||||
|
}
|
||||||
ver = iosapic_version(addr);
|
ver = iosapic_version(addr);
|
||||||
if ((err = iosapic_check_gsi_range(gsi_base, ver))) {
|
if ((err = iosapic_check_gsi_range(gsi_base, ver))) {
|
||||||
iounmap(addr);
|
iounmap(addr);
|
||||||
|
|
Loading…
Reference in a new issue