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

From: Ricardo Ribalda Delgado
Date: Wed Feb 11 2015 - 04:12:49 EST

Hello again

On Wed, Feb 11, 2015 at 10:00 AM, Marek Szyprowski
<m.szyprowski@xxxxxxxxxxx> wrote:

> Well, this int return value seems to be misleading, but according to
> Documentation/DMA-API.txt, the only error value is zero:
> "As with the other mapping interfaces, dma_map_sg() can fail. When it
> does, 0 is returned and a driver must take appropriate action. It is
> critical that the driver do something, in the case of a block driver
> aborting the request or even oopsing is better than doing nothing and
> corrupting the filesystem."
> I've also checked various dma-mapping implementation for different
> architectures and they follow this convention.
> Maybe one should add some comments to include/linux/dma_mapping.h to
> clarify this and avoid further confusion.

Or maybe change it to unsigned int...

Let me redo the patch and resend. I will also try to ping whoever is
the maintainer of dma_mapping


Ricardo Ribalda
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at