Subject: Re: [PATCH] powerpc: change rheap functions to use long integers instead of pointers

From: Timur Tabi <[email-masked]>
Date: Wed, 04 Apr 2007 13:34:27 -0500

Scott Wood wrote:

>> Otherwise, if you pass an unaligned value of 'start', then the buffer 
>> you get back will be less than 'size'.
> 
> That's better than the buffer you get back being bigger than the region 
> that's really free...

True, but I think both cases should be rejected.

> If I attach a region from 0x03 to 0x2d, and the alignment is 4, then the 
> only sane thing to do is allocate from 0x04 to 0x2b.

Or return an error.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale