From: Steven J. Magnani Date: Thu, 25 Feb 2010 19:39:30 +0000 (-0600) Subject: fsldma: Fix cookie issues X-Git-Tag: v2.6.34-rc1~204^2~13 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=6ca3a7a96e91b1aa8c704153c992b191d35b5747;p=~emulex%2Finfiniband.git fsldma: Fix cookie issues fsl_dma_tx_submit() only sets the cookie on the first descriptor of a transaction. It should set the cookie on all. Signed-off-by: Steven J. Magnani Acked-by: Ira W. Snyder Signed-off-by: Dan Williams --- diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c index 92efa87258b..6541ebf8bf6 100644 --- a/drivers/dma/fsldma.c +++ b/drivers/dma/fsldma.c @@ -362,7 +362,7 @@ static dma_cookie_t fsl_dma_tx_submit(struct dma_async_tx_descriptor *tx) if (cookie < 0) cookie = 1; - desc->async_tx.cookie = cookie; + child->async_tx.cookie = cookie; } chan->common.cookie = cookie;