]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (11840): change kmalloc to vmalloc for sglist allocation in videobuf_dma_map...
authorCohen David.A <david.cohen@nokia.com>
Mon, 11 May 2009 14:00:20 +0000 (11:00 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 21:21:10 +0000 (18:21 -0300)
commit8aac8522b03d1e4fac98d87de27cf17dc166c7b3
treeaa95ea2fb7cc5aec23c83ea650e8397a593d1c8d
parent7639836725f7cfdbdc6938d86543f4c4ef9d35ca
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 <david.cohen@nokia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Documentation/video4linux/CARDLIST.em28xx
drivers/media/video/videobuf-dma-sg.c