crypto: marvell/cesa - fix missing cpu_to_le32() in mv_cesa_dma_add_op()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 18 Oct 2015 17:31:20 +0000 (18:31 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Oct 2015 14:13:57 +0000 (22:13 +0800)
commitea1f662bde067563328ec3083884aaffb3d902d8
tree2d8fb9974549b6607447abdd701db47e9cf686c5
parent0f3304dc18b1316bc6d32921f2a7837938f90c30
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 <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/tdma.c