Re: [PATCHv6 2/5] lib/genalloc.c: Add genpool range check function

2014-08-08 Thread Andrew Morton
On Fri, 8 Aug 2014 13:23:14 -0700 Laura Abbott wrote: > > After allocating an address from a particular genpool, > there is no good way to verify if that address actually > belongs to a genpool. Introduce addr_in_gen_pool which > will return if an address plus size falls completely > within the

[PATCHv6 2/5] lib/genalloc.c: Add genpool range check function

2014-08-08 Thread Laura Abbott
After allocating an address from a particular genpool, there is no good way to verify if that address actually belongs to a genpool. Introduce addr_in_gen_pool which will return if an address plus size falls completely within the genpool range. Acked-by: Will Deacon Reviewed-by: Olof Johansson