Re: [PATCH 1/2] spi: core: Fix check for dma_map_sg() failures

From: Mark Brown
Date: Fri Jul 11 2014 - 09:03:54 EST


On Thu, Jul 10, 2014 at 03:29:32PM +0200, Geert Uytterhoeven wrote:
> From: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
>
> According to Documentation/DMA-API.txt, dma_map_sg() returns 0 on failure.
> As spi_map_buf() returns an error code, convert zero into -ENOMEM.
> Keep the existing check for negative numbers just in case.

Applied both, thanks.

Attachment: signature.asc
Description: Digital signature