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

Commit ba02b242 authored by Andrew Morton's avatar Andrew Morton Committed by Jesse Barnes
Browse files

PCI hotplug: check ioremap() return value in ibmphp_ebda.c



check ioremap() return value.

Cc: <stable@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 939fdc67
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -261,6 +261,8 @@ int __init ibmphp_access_ebda (void)
	debug ("returned ebda segment: %x\n", ebda_seg);
	
	io_mem = ioremap(ebda_seg<<4, 1);
	if (!io_mem)
		return -ENOMEM;
	ebda_sz = readb(io_mem);
	iounmap(io_mem);
	debug("ebda size: %d(KiB)\n", ebda_sz);