lkml.org 
[lkml]   [2010]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 27/49] memblock: memblock_find_base() should return MEMBLOCK_ERROR on failing path
    Date
    all callees assume it return MEMBLOCK_ERROR when it fail to find a range

    Signed-off-by: Yinghai Lu <yinghai@kernel.org>
    ---
    mm/memblock.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/mm/memblock.c b/mm/memblock.c
    index c71b847..8ed7901 100644
    --- a/mm/memblock.c
    +++ b/mm/memblock.c
    @@ -154,7 +154,7 @@ static phys_addr_t __init memblock_find_base(phys_addr_t size, phys_addr_t align
    if (found != MEMBLOCK_ERROR)
    return found;
    }
    - return 0;
    + return MEMBLOCK_ERROR;
    }

    static void memblock_remove_region(struct memblock_type *type, unsigned long r)
    --
    1.6.4.2


    \
     
     \ /
      Last update: 2010-07-07 00:49    [W:5.524 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site