]> git.baikalelectronics.ru Git - kernel.git/commit
lib/genalloc.c: fix the end addr check in addr_in_gen_pool()
authorToshi Kikuchi <toshik@chromium.org>
Thu, 12 Feb 2015 23:02:18 +0000 (15:02 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 13 Feb 2015 02:54:14 +0000 (18:54 -0800)
commitab5d13a9114a35f9ab2787a4d56aab6fe406de34
tree42b109baf3a0121d702964fd5411d9ac0cd168f4
parent28941295ad6c06b3bb67aa69cc00f728131f7252
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 <toshik@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/genalloc.c