mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
crypto: marvell/cesa - fix missing cpu_to_le32() in mv_cesa_dma_add_op()
When tdma->src is freed in mv_cesa_dma_cleanup(), we convert the DMA address from a little-endian value prior to calling dma_pool_free(). However, mv_cesa_dma_add_op() assigns tdma->src without first converting the DMA address to little endian. Fix this. Signed-off-by: Russell King <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
0f3304dc18
commit
ea1f662bde
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ struct mv_cesa_op_ctx *mv_cesa_dma_add_op(struct mv_cesa_tdma_chain *chain,
|
|||
tdma = chain->last;
|
||||
tdma->op = op;
|
||||
tdma->byte_cnt = (skip_ctx ? sizeof(op->desc) : sizeof(*op)) | BIT(31);
|
||||
tdma->src = dma_handle;
|
||||
tdma->src = cpu_to_le32(dma_handle);
|
||||
tdma->flags = CESA_TDMA_DST_IN_SRAM | CESA_TDMA_OP;
|
||||
|
||||
return op;
|
||||
|
|
|
|||
Loading…
Reference in a new issue