WSL2-Linux-Kernel/drivers/crypto/hisilicon
Christophe JAILLET a8607725b2 crypto: hisilicon/hpre - Fix a erroneous check after snprintf()
[ Upstream commit c977950146720abff14e46d8c53f5638b06a9182 ]

This error handling looks really strange.
Check if the string has been truncated instead.

Fixes: 02ab994635 ("crypto: hisilicon - Fixed some tiny bugs of HPRE")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 11:08:22 +01:00
..
hpre crypto: hisilicon/hpre - Fix a erroneous check after snprintf() 2023-11-20 11:08:22 +01:00
sec crypto: hisilicon - Kunpeng916 crypto driver don't sleep when in softirq 2022-08-17 14:23:28 +02:00
sec2 crypto: hisilicon/sec - fix auth key size error 2022-08-17 14:23:35 +02:00
trng crypto: hisilicon/trng - add version to adapt new algorithm 2021-04-16 21:16:31 +10:00
zip crypto: hisilicon/zip - fix mismatch in get/set sgl_sge_nr 2022-10-26 12:35:24 +02:00
Kconfig crypto: hisilicon/hpre - fix Kconfig 2021-03-26 20:15:57 +11:00
Makefile crypto: hisilicon/trng - add HiSilicon TRNG driver support 2020-11-27 17:13:43 +11:00
qm.c crypto: hisilicon/qm - fix missing destroy qp_idr 2022-12-31 13:14:21 +01:00
qm.h crypto: hisilicon/qm - add missing pci_dev_put() in q_num_set() 2022-12-31 13:14:23 +01:00
sgl.c crypto: hisilicon: Wipe entire pool on error 2023-03-10 09:39:49 +01:00