]> Git Repo - linux.git/commit
dmapool: Validate parameters to dma_pool_create
authorMatthew Wilcox <[email protected]>
Mon, 3 Dec 2007 17:10:24 +0000 (12:10 -0500)
committerMatthew Wilcox <[email protected]>
Tue, 4 Dec 2007 15:39:56 +0000 (10:39 -0500)
commit399154be2dcb6a58dbde9682162c38113cf3e40b
treee8f18356056729ef104db151703018d72e9ca929
parent2cae367e4854ff055c4f5e8aacd56b0eeec9f6cb
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 <[email protected]>
Acked-by: David S. Miller <[email protected]>
mm/dmapool.c
This page took 0.053025 seconds and 4 git commands to generate.