Re: [PATCH 2/3] media/videobuf2-dma-contig: Fix handling of sg_table structure

2015-02-11 Thread Marek Szyprowski
Hello, On 2015-02-09 17:14, Ricardo Ribalda Delgado wrote: when sg_alloc_table_from_pages() does not fail it returns a sg_table structure with nents and nents_orig initialized to the same value. dma_map_sg returns the dma_map_sg returns the number of areas mapped by the hardware, which could be

[PATCH 2/3] media/videobuf2-dma-contig: Fix handling of sg_table structure

2015-02-09 Thread Ricardo Ribalda Delgado
when sg_alloc_table_from_pages() does not fail it returns a sg_table structure with nents and nents_orig initialized to the same value. dma_map_sg returns the 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 b