mirror-linux/drivers/crypto/nx
Herbert Xu 9b00eb923f crypto: nx - Fix uninitialised hv_nxc on error
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>
2025-03-21 17:33:39 +08:00
..
Kconfig
Makefile crypto: nx - fix build warnings when DEBUG_FS is not enabled 2023-05-24 18:12:33 +08:00
nx-842.c crypto: nx - Avoid -Wflex-array-member-not-at-end warning 2024-04-02 10:49:38 +08:00
nx-842.h crypto: nx - Use static_assert() to check struct sizes 2024-08-17 13:55:50 +08:00
nx-aes-cbc.c crypto: nx - Fix numerous sparse byte-order warnings 2021-06-24 14:51:35 +08:00
nx-aes-ccm.c crypto: nx - use the new scatterwalk functions 2025-03-02 15:19:43 +08:00
nx-aes-ctr.c crypto: nx - Fix numerous sparse byte-order warnings 2021-06-24 14:51:35 +08:00
nx-aes-ecb.c crypto: nx - Fix numerous sparse byte-order warnings 2021-06-24 14:51:35 +08:00
nx-aes-gcm.c crypto: nx - use the new scatterwalk functions 2025-03-02 15:19:43 +08:00
nx-aes-xcbc.c
nx-common-powernv.c crypto: nx - Fix sparse warnings 2023-02-14 13:39:33 +08:00
nx-common-pseries.c crypto: nx - Fix uninitialised hv_nxc on error 2025-03-21 17:33:39 +08:00
nx-sha256.c crypto: nx - Fix numerous sparse byte-order warnings 2021-06-24 14:51:35 +08:00
nx-sha512.c crypto: nx - Fix numerous sparse byte-order warnings 2021-06-24 14:51:35 +08:00
nx.c crypto: scatterwalk - Change scatterwalk_next calling convention 2025-03-15 16:21:22 +08:00
nx.h crypto: nx - use the new scatterwalk functions 2025-03-02 15:19:43 +08:00
nx_csbcpb.h crypto: nx - Fix numerous sparse byte-order warnings 2021-06-24 14:51:35 +08:00
nx_debugfs.c