crypto: caam - fix DMA mapping dir for generated IV
authorHoria Geantă <horia.geanta@nxp.com>
Wed, 28 Mar 2018 12:39:17 +0000 (15:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Jun 2018 07:45:17 +0000 (09:45 +0200)
commit635ac89ea764dcb6a465e706107644f8baa96811
tree0ae3aaa7ef0fdcde393a4d7e788a3ab54adec2b1
parented0a79561189487506ef7fe0a6709b4810378a77
crypto: caam - fix DMA mapping dir for generated IV

commit a38acd236cac914aafffd80af79b9556fc2c3934 upstream.

In case of GIVCIPHER, IV is generated by the device.
Fix the DMA mapping direction.

Cc: <stable@vger.kernel.org> # 3.19+
Fixes: 7222d1a34103 ("crypto: caam - add support for givencrypt cbc(aes) and rfc3686(ctr(aes))")
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/caam/caamalg.c