lkml.org 
[lkml]   [2010]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 004/123] PCI hotplug: check ioremap() return value in ibmphp_ebda.c
    2.6.33-stable review patch.  If anyone has any objections, please let me know.

    -----------------

    From: Andrew Morton <akpm@linux-foundation.org>

    commit ba02b242bbf8e4e1bc63d62e8ccec33b4e5ea132 upstream.

    check ioremap() return value.

    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    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);
    iounmap(io_mem);
    debug("ebda size: %d(KiB)\n", ebda_sz);



    \
     
     \ /
      Last update: 2010-03-13 01:23    [W:0.020 / U:1.316 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site