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>
Этот коммит содержится в:

коммит произвёл
Herbert Xu

родитель
d54fc90cc9
Коммит
bd52f1c232
@@ -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
|
||||
|
Ссылка в новой задаче
Block a user