From: Cohen David.A Date: Mon, 11 May 2009 14:00:20 +0000 (-0300) Subject: V4L/DVB (11840): change kmalloc to vmalloc for sglist allocation in videobuf_dma_map... X-Git-Tag: v2.6.31-rc1~297^2~157 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1010ed132727bbf486ac28fd149ccfb0ef5cd2ab;p=pandora-kernel.git V4L/DVB (11840): change kmalloc to vmalloc for sglist allocation in videobuf_dma_map/unmap Change kmalloc()/kfree() to vmalloc()/vfree() for sglist allocation during videobuf_dma_map() and videobuf_dma_unmap() High resolution sensors might require too many contiguous pages to be allocated for sglist by kmalloc() during videobuf_dma_map() (i.e. 256Kib for 8MP sensor). In such situations, kmalloc() could face some problem to find the required free memory. vmalloc() is a safer solution instead, as the allocated memory does not need to be contiguous. Signed-off-by: David Cohen Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed