Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: caam - fix condition for the jump over key(s) command

SELF condition has no meaning for the SERIAL sharing since the jobs
are executed in the same DECO.

Signed-off-by: Tudor Ambarus <tudor-dan.ambarus@nxp.com>
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Tudor Ambarus and committed by
Herbert Xu
ad818080 f366af46

+2 -3
+2 -3
drivers/crypto/caam/caamalg_desc.c
··· 599 599 600 600 /* skip key loading if they are loaded due to sharing */ 601 601 key_jump_cmd = append_jump(desc, JUMP_JSL | JUMP_TEST_ALL | 602 - JUMP_COND_SHRD | JUMP_COND_SELF); 602 + JUMP_COND_SHRD); 603 603 if (cdata->key_inline) 604 604 append_key_as_imm(desc, cdata->key_virt, cdata->keylen, 605 605 cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG); ··· 688 688 689 689 /* skip key loading if they are loaded due to sharing */ 690 690 key_jump_cmd = append_jump(desc, JUMP_JSL | 691 - JUMP_TEST_ALL | JUMP_COND_SHRD | 692 - JUMP_COND_SELF); 691 + JUMP_TEST_ALL | JUMP_COND_SHRD); 693 692 if (cdata->key_inline) 694 693 append_key_as_imm(desc, cdata->key_virt, cdata->keylen, 695 694 cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG);