]> git.baikalelectronics.ru Git - kernel.git/commit
memblock: Fix memblock_is_region_reserved() to return a boolean
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 4 Aug 2010 04:17:17 +0000 (14:17 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 9 Aug 2010 01:21:38 +0000 (11:21 +1000)
commit0baa4911bff2fe9cdc7046feafbe7499da573cf2
treeddecb718dcbe08e1491dee0df45ef0ec3f488309
parent363b568b67903ed01a4ac92e35ad7c2d9ba8f411
memblock: Fix memblock_is_region_reserved() to return a boolean

All callers expect a boolean result which is true if the region
overlaps a reserved region. However, the implementation actually
returns -1 if there is no overlap, and a region index (0 based)
if there is.

Make it behave as callers (and common sense) expect.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
mm/memblock.c