dma_declare_coherent_memory wrong allocation
commitb247e8aaf2837715d31eb25828fa8b4eb0a659cd
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 8 May 2007 07:31:25 +0000 (8 00:31 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:15:14 +0000 (8 11:15 -0700)
treeb796caad363353128d47da9beefb9df10014ae64
parentf19b121e21c1b032f6c612d2b9b499151f7b661b
dma_declare_coherent_memory wrong allocation

dma_declare_coherent_memory() allocates a bitmap 1 bit per page, it
calculates the bitmap size based on size of long, but allocates bytes...
Thanks to James Bottomley for clarifications and corrections.

Signed-off-by: G. Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: James Bottomley <James.Bottomley@SteelEye.com>
Cc: Mikael Starvik <starvik@axis.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/cris/arch-v32/drivers/pci/dma.c
arch/i386/kernel/pci-dma.c