Skip to content

Commit

Permalink
dmaengine: fix xor sources continuation
Browse files Browse the repository at this point in the history
the partial xor result must be kept until the next
tx is generated.

Cc: <stable@vger.kernel.org>
Signed-off-by: Xuelin Shi <xuelin.shi@freescale.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
  • Loading branch information
Xuelin Shi authored and Dan Williams committed Aug 21, 2014
1 parent fbeec99 commit 87cea76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crypto/async_tx/async_xor.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ do_async_xor(struct dma_chan *chan, struct dmaengine_unmap_data *unmap,
tx = dma->device_prep_dma_xor(chan, dma_dest, src_list,
xor_src_cnt, unmap->len,
dma_flags);
src_list[0] = tmp;


if (unlikely(!tx))
async_tx_quiesce(&submit->depend_tx);
Expand All @@ -92,6 +90,7 @@ do_async_xor(struct dma_chan *chan, struct dmaengine_unmap_data *unmap,
xor_src_cnt, unmap->len,
dma_flags);
}
src_list[0] = tmp;

dma_set_unmap(tx, unmap);
async_tx_submit(chan, tx, submit);
Expand Down

0 comments on commit 87cea76

Please sign in to comment.