From: Dan Williams Date: Sat, 1 Mar 2008 14:52:14 +0000 (-0700) Subject: ioat: fix 'ack' handling, driver must ensure that 'ack' is zero X-Git-Tag: v2.6.25-rc4~94^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6497dcffe07b7c3d863f9899280c4f6eae999161;p=linux-2.6-omap-h63xx.git ioat: fix 'ack' handling, driver must ensure that 'ack' is zero Initialize 'ack' to zero in case the descriptor has been recycled. Prevents "kernel BUG at crypto/async_tx/async_xor.c:185!" Signed-off-by: Dan Williams Acked-by: Shannon Nelson Cc: stable@kernel.org --- diff --git a/drivers/dma/ioat_dma.c b/drivers/dma/ioat_dma.c index dff38accc5c..4017d9e7acd 100644 --- a/drivers/dma/ioat_dma.c +++ b/drivers/dma/ioat_dma.c @@ -714,6 +714,7 @@ static struct dma_async_tx_descriptor *ioat1_dma_prep_memcpy( new->len = len; new->dst = dma_dest; new->src = dma_src; + new->async_tx.ack = 0; return &new->async_tx; } else return NULL; @@ -741,6 +742,7 @@ static struct dma_async_tx_descriptor *ioat2_dma_prep_memcpy( new->len = len; new->dst = dma_dest; new->src = dma_src; + new->async_tx.ack = 0; return &new->async_tx; } else return NULL;