[media] media/videobuf2-dma-vmalloc: Save output from dma_map_sg
authorRicardo Ribalda <ricardo.ribalda@gmail.com>
Wed, 29 Apr 2015 12:00:47 +0000 (09:00 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 30 May 2015 14:31:10 +0000 (11:31 -0300)
commitba81c6ed3dd4717439940cd5f60b152ea924093d
tree9f423a79dd7212216b27cf368a5ec6e2d2812cbf
parent60a471923869394a47c10262d080286eb01451b5
[media] media/videobuf2-dma-vmalloc: Save output from dma_map_sg

dma_map_sg returns the number of areas mapped by the hardware,
which could be different than the areas given as an input.
The output must be saved to nent.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Reviewed-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/videobuf2-vmalloc.c