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

2014-07-22 Thread Catalin Marinas
On Mon, Jul 21, 2014 at 08:51:04PM +0100, Laura Abbott wrote: > On 7/9/2014 3:33 PM, Olof Johansson wrote: > > On Wed, Jul 2, 2014 at 11:03 AM, Laura Abbott wrote: > >> > >> After allocating an address from a particular genpool, > >> there is no good way to verify if that address actually > >> bel

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

2014-07-21 Thread Laura Abbott
On 7/9/2014 3:33 PM, Olof Johansson wrote: > On Wed, Jul 2, 2014 at 11:03 AM, 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 a

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

2014-07-09 Thread Olof Johansson
On Wed, Jul 2, 2014 at 11:03 AM, 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 gen

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

2014-07-03 Thread Will Deacon
On Wed, Jul 02, 2014 at 07:03:35PM +0100, 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 > withi