From: Matthew Wilcox Date: Mon, 3 Dec 2007 17:10:24 +0000 (-0500) Subject: dmapool: Validate parameters to dma_pool_create X-Git-Tag: v2.6.25-rc1~780^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=399154be2dcb6a58dbde9682162c38113cf3e40b;p=pandora-kernel.git dmapool: Validate parameters to dma_pool_create Check that 'align' is a power of two, like the API specifies. Align 'size' to 'align' correctly -- the current code has an off-by-one. The ALIGN macro in kernel.h doesn't. Signed-off-by: Matthew Wilcox Acked-by: David S. Miller --- Reading git-diff-tree failed