Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7369e01 authored by Roel Kluin's avatar Roel Kluin Committed by Fenghua Yu
Browse files

arch/ia64/kernel/iosapic: missing test after ioremap()



Missing test after ioremap()

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Acked-by: default avatarFenghua Yu <fenghua.yu@intel.com>
parent 5359dffd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);