Skip to content
Commit ad3d5d2f authored by Toshi Kikuchi's avatar Toshi Kikuchi Committed by Linus Torvalds
Browse files

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: default avatarToshi Kikuchi <toshik@chromium.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent af3cd135
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment