lib/genalloc.c: fix the end addr check in addr_in_gen_pool()
authorToshi Kikuchi <[email protected]>
Thu, 12 Feb 2015 23:02:18 +0000 (15:02 -0800)
committerLinus Torvalds <[email protected]>
Fri, 13 Feb 2015 02:54:14 +0000 (18:54 -0800)
commitad3d5d2f7deca6d0fd72163573bcb0cca6337e33
tree42b109baf3a0121d702964fd5411d9ac0cd168f4
parentaf3cd13501eb04ca61d017ff4406f1cbffafdc04
lib/genalloc.c: fix the end addr check in addr_in_gen_pool()

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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
lib/genalloc.c