diff options
author | Cristian Stoica <cristian.stoica@freescale.com> | 2016-05-19 18:11:18 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-05-31 16:41:53 +0800 |
commit | bd52f1c23255a7c355268215c3c75aabbe11a67a (patch) | |
tree | 8bdcc1b3c872e0f8749d0506625b48caf0e2134f /drivers/crypto/caam/desc.h | |
parent | d54fc90cc9723d73eef25d09efcef412a6c89d60 (diff) | |
download | talos-op-linux-bd52f1c23255a7c355268215c3c75aabbe11a67a.tar.gz talos-op-linux-bd52f1c23255a7c355268215c3c75aabbe11a67a.zip |
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>
Diffstat (limited to 'drivers/crypto/caam/desc.h')
-rw-r--r-- | drivers/crypto/caam/desc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/caam/desc.h b/drivers/crypto/caam/desc.h index 1e93c6af2275..fe30ff69088c 100644 --- a/drivers/crypto/caam/desc.h +++ b/drivers/crypto/caam/desc.h @@ -20,7 +20,7 @@ #define SEC4_SG_BPID_MASK 0x000000ff #define SEC4_SG_BPID_SHIFT 16 #define SEC4_SG_LEN_MASK 0x3fffffff /* Excludes EXT and FINAL */ -#define SEC4_SG_OFFS_MASK 0x00001fff +#define SEC4_SG_OFFSET_MASK 0x00001fff struct sec4_sg_entry { #ifdef CONFIG_CRYPTO_DEV_FSL_CAAM_IMX |