diff options
author | Matthew Wilcox | 2007-12-03 18:10:24 +0100 |
---|---|---|
committer | Matthew Wilcox | 2007-12-04 16:39:56 +0100 |
commit | 399154be2dcb6a58dbde9682162c38113cf3e40b (patch) | |
tree | e8f18356056729ef104db151703018d72e9ca929 /mm/mprotect.c | |
parent | Avoid taking waitqueue lock in dmapool (diff) | |
download | kernel-qcow2-linux-399154be2dcb6a58dbde9682162c38113cf3e40b.tar.gz kernel-qcow2-linux-399154be2dcb6a58dbde9682162c38113cf3e40b.tar.xz kernel-qcow2-linux-399154be2dcb6a58dbde9682162c38113cf3e40b.zip |
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 <willy@linux.intel.com>
Acked-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/mprotect.c')
0 files changed, 0 insertions, 0 deletions