Patch "spi: davinci: use dma_mapping_error()" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
spi: davinci: use dma_mapping_error()
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
spi-davinci-use-dma_mapping_error.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Mon Jul 3 13:29:10 CEST 2017
From: Kevin Hilman <[email protected]>
Date: Wed, 11 Jan 2017 18:18:40 -0800
Subject: spi: davinci: use dma_mapping_error()
From: Kevin Hilman <[email protected]>
[ Upstream commit c5a2a394835f473ae23931eda5066d3771d7b2f8 ]
The correct error checking for dma_map_single() is to use dma_mapping_error().
--- drivers/spi/spi-davinci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-davinci.c +2 -2
@@ -646,7 +646,7 @@ static int davinci_spi_bufs(struct spi_d buf = t->rx_buf; t->rx_dma =dma_map_single (&spi->dev, buf, t->len,DMA_FROM_DEVICE ); -if (!t->rx_dma) { +if (dma_mapping_error (&spi->dev, !t->rx_dma)) { ret = -EFAULT ; goto err_rx_map; }
@@ -660,7 +660,7 @@ static int davinci_spi_bufs(struct spi_d buf = (void *)t->tx_buf; t->tx_dma =dma_map_single (&spi->dev, buf, t->len,DMA_TO_DEVICE ); -if (!t->tx_dma) { +if (dma_mapping_error (&spi->dev, t->tx_dma)) { ret = -EFAULT ; goto err_tx_map; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/spi-davinci-use-dma_mapping_error.patch queue-4.9/arm64-dts-meson-gxbb-odroidc2-fix-gbe-tx-link-breakage.patch