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
On Wed, Feb 11, 2015 at 10:00 AM, Marek Szyprowski
> 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
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/