The sdhci_transfer_data_dma function always returned 0 even in case of an error, fix this. Fixes: 60b608b271 ("mci: sdhci: Add DMA transfer helpers") Signed-off-by: Jules Maselbas <jmaselbas@xxxxxxxxx> --- drivers/mci/sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mci/sdhci.c b/drivers/mci/sdhci.c index f6deea4020..a980e34314 100644 --- a/drivers/mci/sdhci.c +++ b/drivers/mci/sdhci.c @@ -244,7 +244,7 @@ int sdhci_transfer_data_dma(struct sdhci *sdhci, struct mci_data *data, else dma_unmap_single(dev, dma, nbytes, DMA_TO_DEVICE); - return 0; + return ret; } int sdhci_transfer_data_pio(struct sdhci *sdhci, struct mci_data *data) -- 2.41.0