]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
crypto: caam - Fix incorrect size when DMA unmapping buffer
authorVictoria Milhoan <vicki.milhoan@freescale.com>
Mon, 15 Jun 2015 23:52:57 +0000 (16:52 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 16 Jun 2015 06:35:07 +0000 (14:35 +0800)
commit8af7b0f809a3d34657433ec545d64dff9808ce34
treea35024c4de3b7066fb381b474f4e22ceee885ec7
parentd37e296979ed1652aec6850e2d736bd0ebf0cdb1
crypto: caam - Fix incorrect size when DMA unmapping buffer

The CAAM driver uses two data buffers to store data for a hashing operation,
with one buffer defined as active. This change forces switching of the
active buffer when executing a hashing operation to avoid a later DMA unmap
using the length of the opposite buffer.

Signed-off-by: Victoria Milhoan <vicki.milhoan@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamhash.c