diff options
-rw-r--r-- | mm/memblock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memblock.c b/mm/memblock.c index 3024eb30fc27..43840b305ecb 100644 --- a/mm/memblock.c +++ b/mm/memblock.c | |||
@@ -504,7 +504,7 @@ int __init memblock_is_reserved(u64 addr) | |||
504 | 504 | ||
505 | int memblock_is_region_reserved(u64 base, u64 size) | 505 | int memblock_is_region_reserved(u64 base, u64 size) |
506 | { | 506 | { |
507 | return memblock_overlaps_region(&memblock.reserved, base, size); | 507 | return memblock_overlaps_region(&memblock.reserved, base, size) >= 0; |
508 | } | 508 | } |
509 | 509 | ||
510 | /* | 510 | /* |