Re: [PATCH] lib/genalloc.c: fix the end addr check in addr_in_gen_pool()

2014-12-22 Thread Andrew Morton
On Thu, 18 Dec 2014 18:30:59 -0800 Toshi Kikuchi wrote: > Since chunk->end_addr is (chunk->start_addr + size - 1), > the end address to compare should be (start + size - 1). > > Signed-off-by: Toshi Kikuchi > --- > lib/genalloc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > dif

[PATCH] lib/genalloc.c: fix the end addr check in addr_in_gen_pool()

2014-12-18 Thread Toshi Kikuchi
Since chunk->end_addr is (chunk->start_addr + size - 1), the end address to compare should be (start + size - 1). Signed-off-by: Toshi Kikuchi --- lib/genalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/genalloc.c b/lib/genalloc.c index 2e65d20..42a95e9 100644 ---