crypto: caam - fix offset field in hw sg entries
authorCristian Stoica <cristian.stoica@freescale.com>
Thu, 19 May 2016 15:11:18 +0000 (18:11 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 31 May 2016 08:41:53 +0000 (16:41 +0800)
commitbd52f1c23255a7c355268215c3c75aabbe11a67a
tree8bdcc1b3c872e0f8749d0506625b48caf0e2134f
parentd54fc90cc9723d73eef25d09efcef412a6c89d60
crypto: caam - fix offset field in hw sg entries

The offset field is 13 bits wide; make sure we don't overwrite more than
that in the caam hardware scatter gather structure.

Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com>
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/desc.h
drivers/crypto/caam/sg_sw_sec4.h