Skip to content

Commit

Permalink
dmaengine: imx-sdma: set sdmac->status to DMA_ERROR in err_out of sdm…
Browse files Browse the repository at this point in the history
…a_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>
  • Loading branch information
Shawn Guo authored and Sascha Hauer committed Jan 31, 2011
1 parent 1797c33 commit 4b2ce9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/dma/imx-sdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,7 @@ static struct dma_async_tx_descriptor *sdma_prep_slave_sg(

return &sdmac->desc;
err_out:
sdmac->status = DMA_ERROR;
return NULL;
}

Expand Down

0 comments on commit 4b2ce9d

Please sign in to comment.