Prev: [PATCH 09/37] bootmem, x86: Add weak version of reserve_bootmem_generic
Next: [PATCH -v17 00/37] Use lmb with x86
From: Yinghai Lu on 14 May 2010 15:50 all callees assume it return LMB_ERROR when it fail to find a range Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- lib/lmb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/lmb.c b/lib/lmb.c index 2cd5aaa..0d4e4c0 100644 --- a/lib/lmb.c +++ b/lib/lmb.c @@ -154,7 +154,7 @@ static phys_addr_t __init lmb_find_base(phys_addr_t size, phys_addr_t align, if (found != LMB_ERROR) return found; } - return 0; + return LMB_ERROR; } static void lmb_remove_region(struct lmb_type *type, unsigned long r) -- 1.6.4.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |