]> git.baikalelectronics.ru Git - kernel.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)
commit45c0ac50c9f0b8b4022d5821dc440d465b11ac20
treea35024c4de3b7066fb381b474f4e22ceee885ec7
parenta44353e1954385d360af52d6717d1effcae6e7a5
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