kernel_optimize_test/drivers/crypto/caam
Horia Geantă ae292e43b0 crypto: caam - fix printing on xts fallback allocation error path
[ Upstream commit ab95bd2aa904e4f53b7358efeea1d57693fb7889 ]

At the time xts fallback tfm allocation fails the device struct
hasn't been enabled yet in the caam xts tfm's private context.

Fix this by using the device struct from xts algorithm's private context
or, when not available, by replacing dev_err with pr_err.

Fixes: 9d9b14dbe0 ("crypto: caam/jr - add fallback for XTS with more than 8B IV")
Fixes: 83e8aa9121 ("crypto: caam/qi - add fallback for XTS with more than 8B IV")
Fixes: 36e2d7cfdc ("crypto: caam/qi2 - add fallback for XTS with more than 8B IV")
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:53:03 +01:00
..
caamalg_desc.c crypto: caam/jr - add support for XTS with 16B IV 2020-10-02 18:02:12 +10:00
caamalg_desc.h
caamalg_qi.c crypto: caam - fix printing on xts fallback allocation error path 2020-12-30 11:53:03 +01:00
caamalg_qi2.c crypto: caam - fix printing on xts fallback allocation error path 2020-12-30 11:53:03 +01:00
caamalg_qi2.h crypto: caam/qi2 - add fallback for XTS with more than 8B IV 2020-10-02 18:02:11 +10:00
caamalg.c crypto: caam - fix printing on xts fallback allocation error path 2020-12-30 11:53:03 +01:00
caamhash_desc.c
caamhash_desc.h
caamhash.c crypto: drivers - set the flag CRYPTO_ALG_ALLOCATES_MEMORY 2020-07-16 21:49:10 +10:00
caampkc.c mm, treewide: rename kzfree() to kfree_sensitive() 2020-08-07 11:33:22 -07:00
caampkc.h crypto: caam - add crypto_engine support for RSA algorithms 2020-02-22 09:25:48 +08:00
caamrng.c crypto: caam - limit single JD RNG output to maximum of 16 bytes 2020-03-30 11:50:50 +11:00
compat.h crypto: caam - Remove broken arc4 support 2020-07-16 21:49:00 +10:00
ctrl.c crypto: caam - Fix kerneldoc 2020-09-18 17:20:12 +10:00
ctrl.h
debugfs.c crypto: caam - Move debugfs fops into standalone file 2020-08-21 14:47:49 +10:00
debugfs.h crypto: caam - Move debugfs fops into standalone file 2020-08-21 14:47:49 +10:00
desc_constr.h
desc.h crypto: caam - fix typos 2020-06-15 17:38:54 +10:00
dpseci_cmd.h crypto: caam/qi2 - add support for dpseci_reset() 2020-06-18 17:19:45 +10:00
dpseci-debugfs.c crypto: caam - Convert to DEFINE_SHOW_ATTRIBUTE 2020-09-25 17:48:16 +10:00
dpseci-debugfs.h
dpseci.c crypto: caam/qi2 - add support for dpseci_reset() 2020-06-18 17:19:45 +10:00
dpseci.h crypto: caam/qi2 - add support for dpseci_reset() 2020-06-18 17:19:45 +10:00
error.c crypto: caam - add more RNG hw error codes 2020-07-31 18:25:28 +10:00
error.h
intern.h crypto: caam - Move debugfs fops into standalone file 2020-08-21 14:47:49 +10:00
jr.c crypto: caam - Fix kerneldoc 2020-09-18 17:20:12 +10:00
jr.h
Kconfig crypto: caam/qi2 - add fallback for XTS with more than 8B IV 2020-10-02 18:02:11 +10:00
key_gen.c crypto: caam - change return code in caam_jr_enqueue function 2020-02-22 09:25:47 +08:00
key_gen.h
Makefile crypto: caam - Move debugfs fops into standalone file 2020-08-21 14:47:49 +10:00
pdb.h crypto: caam - fix typos 2020-06-15 17:38:54 +10:00
pkc_desc.c
qi.c crypto: caam - Move debugfs fops into standalone file 2020-08-21 14:47:49 +10:00
qi.h
regs.h crypto: caam - remove deadcode on 32-bit platforms 2020-07-31 18:25:27 +10:00
sg_sw_qm.h
sg_sw_qm2.h
sg_sw_sec4.h