linux_dsm_epyc7002/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_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_qi.c crypto: caam - fix printing on xts fallback allocation error path 2020-12-30 11:53:03 +01: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
caampkc.c
caampkc.h
caamrng.c
compat.h
ctrl.c
ctrl.h
debugfs.c
debugfs.h
desc_constr.h
desc.h
dpseci_cmd.h
dpseci-debugfs.c crypto: caam - Convert to DEFINE_SHOW_ATTRIBUTE 2020-09-25 17:48:16 +10:00
dpseci-debugfs.h
dpseci.c
dpseci.h
error.c
error.h
intern.h
jr.c
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
key_gen.h
Makefile
pdb.h
pkc_desc.c
qi.c
qi.h
regs.h
sg_sw_qm2.h
sg_sw_qm.h
sg_sw_sec4.h