From: Greg KH on
2.6.32-stable review patch. If anyone has any objections, please let me know.

From: Andrew Morton <akpm(a)>

commit ba02b242bbf8e4e1bc63d62e8ccec33b4e5ea132 upstream.

check ioremap() return value.

Signed-off-by: Andrew Morton <akpm(a)>
Signed-off-by: Jesse Barnes <jbarnes(a)>
Signed-off-by: Greg Kroah-Hartman <gregkh(a)>

drivers/pci/hotplug/ibmphp_ebda.c | 2 ++
1 file changed, 2 insertions(+)

--- a/drivers/pci/hotplug/ibmphp_ebda.c
+++ b/drivers/pci/hotplug/ibmphp_ebda.c
@@ -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);
debug("ebda size: %d(KiB)\n", ebda_sz);

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)
More majordomo info at
Please read the FAQ at