aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/genalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/genalloc.c b/lib/genalloc.c
index 2e65d206b01c..42a95e99b754 100644
--- a/lib/genalloc.c
+++ b/lib/genalloc.c
@@ -415,7 +415,7 @@ bool addr_in_gen_pool(struct gen_pool *pool, unsigned long start,
415 size_t size) 415 size_t size)
416{ 416{
417 bool found = false; 417 bool found = false;
418 unsigned long end = start + size; 418 unsigned long end = start + size - 1;
419 struct gen_pool_chunk *chunk; 419 struct gen_pool_chunk *chunk;
420 420
421 rcu_read_lock(); 421 rcu_read_lock();