From: Guennadi Liakhovetski Date: Tue, 8 May 2007 07:31:25 +0000 (-0700) Subject: dma_declare_coherent_memory wrong allocation X-Git-Tag: v2.6.22-rc1~615 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b247e8aaf2837715d31eb25828fa8b4eb0a659cd;p=pandora-kernel.git 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 Acked-by: James Bottomley Cc: Mikael Starvik Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed