From: Timur Tabi Date: Mon, 14 May 2007 16:31:26 +0000 (-0500) Subject: [POWERPC] Fix alignment problem in rh_alloc_align() with exact-sized blocks X-Git-Tag: v2.6.22-rc2~7^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c2de47cd47daa033251dbb4a3643e7e87a681b0;p=pandora-kernel.git [POWERPC] Fix alignment problem in rh_alloc_align() with exact-sized blocks 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 Signed-off-by: Kumar Gala --- Reading git-diff-tree failed