[PATCH] powerpc: fix alignment problem in rh_alloc_align() with exact-sized blocks
Kumar Gala
galak at kernel.crashing.org
Wed May 16 04:21:00 EST 2007
On Mon, 14 May 2007, Timur Tabi wrote:
> When an rheap is created, the caller can specify the alignment to use. In
> rh_alloc_align(), if a free block is found that is the exact size needed
> (including extra space for alignment), that configured alignment value is not
> used to align the pointer. Instead, the default alignment is used. If the
> default alignment is smaller than the configured alignment, then the returned
> value will not be aligned correctly.
>
> Signed-off-by: Timur Tabi <timur at freescale.com>
> ---
> arch/powerpc/lib/rheap.c | 22 ++++++++--------------
> 1 files changed, 8 insertions(+), 14 deletions(-)
>
applied.
- k
More information about the Linuxppc-dev
mailing list