Skip to content

Commit

Permalink
ioat: fix 'ack' handling, driver must ensure that 'ack' is zero
Browse files Browse the repository at this point in the history
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 <dan.j.williams@intel.com>
Acked-by: Shannon Nelson <shannon.nelson@intel.com>
Cc: stable@kernel.org
  • Loading branch information
Dan Williams committed Mar 4, 2008
1 parent ec8670f commit 6497dcf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/dma/ioat_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 6497dcf

Please sign in to comment.