commit | 89e4b66a2e34744615c79349aa936df1b4204faf | [log] [tgz] |
---|---|---|
author | Geert Uytterhoeven <geert+renesas@glider.be> | Thu Jul 10 15:29:32 2014 +0200 |
committer | Mark Brown <broonie@linaro.org> | Fri Jul 11 13:57:10 2014 +0100 |
tree | 75a9b942c590ebe9d0d978f3de2e8c07a6bc2e91 | |
parent | 7171511eaec5bf23fb06078f59784a3a0626b38f [diff] |
spi: core: Fix check for dma_map_sg() failures 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. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Mark Brown <broonie@linaro.org>