sst-linux/drivers/crypto/nx
Herbert Xu 837adafac3 crypto: nx - Fix uninitialised hv_nxc on error
[ Upstream commit 9b00eb923f3e60ca76cbc8b31123716f3a87ac6a ]

The compiler correctly warns that hv_nxc may be used uninitialised
as that will occur when NX-GZIP is unavailable.

Fix it by rearranging the code and delay setting caps_feat until
the final query succeeds.

Fixes: b4ba22114c ("crypto/nx: Get NX capabilities for GZIP coprocessor type")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-04-10 14:33:35 +02:00
..
Kconfig
Makefile
nx_csbcpb.h
nx_debugfs.c
nx-842.c
nx-842.h
nx-aes-cbc.c
nx-aes-ccm.c
nx-aes-ctr.c
nx-aes-ecb.c
nx-aes-gcm.c
nx-aes-xcbc.c
nx-common-powernv.c
nx-common-pseries.c
nx-sha256.c
nx-sha512.c
nx.c
nx.h