Commit 4b2ce9ddb370c4eb573540611c347d78ac4b54a0

Authored by Shawn Guo
Committed by Sascha Hauer
1 parent 1797c33f0e

dmaengine: imx-sdma: set sdmac->status to DMA_ERROR in err_out of sdma_prep_slave_sg()

sdma_prep_dma_cyclic() sets sdmac->status to DMA_ERROR in err_out,
and sdma_prep_slave_sg() needs to do the same.  Otherwise,
sdmac->status stays at DMA_IN_PROGRESS, which will make the function
return immediately next time it gets called.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/dma/imx-sdma.c
... ... @@ -947,6 +947,7 @@
947 947  
948 948 return &sdmac->desc;
949 949 err_out:
  950 + sdmac->status = DMA_ERROR;
950 951 return NULL;
951 952 }
952 953