Messages in this thread | | | Date | Fri, 11 Jul 2014 13:57:27 +0100 | From | Mark Brown <> | Subject | Re: [PATCH 1/2] spi: core: Fix check for dma_map_sg() failures |
| |
On Thu, Jul 10, 2014 at 03:29:32PM +0200, Geert Uytterhoeven wrote: > From: Geert Uytterhoeven <geert+renesas@glider.be> > > 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. [unhandled content-type:application/pgp-signature] | |