]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam/qi - fix AD length endianness in S/G entry
authorHoria Geantă <horia.geanta@nxp.com>
Mon, 10 Jul 2017 05:40:32 +0000 (08:40 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 18 Jul 2017 10:16:03 +0000 (18:16 +0800)
commit8c2c723ab7039677bb5d9a9a700dfbd34f85f56d
tree8653e73b69821194c780afd97e286c1aa97f2102
parent10c04b4bc88317a18127524954f33d9badae8963
crypto: caam/qi - fix AD length endianness in S/G entry

Associated data (AD) length is read by CAAM from an S/G entry
that is initially filled by the GPP.
Accordingly, AD length has to be stored in CAAM endianness.

Fixes: bc2cee45fe71 ("crypto: caam/qi - add ablkcipher and authenc algorithms")
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg_qi.c