linux/net/sunrpc/auth_gss
Gaosheng Cui a3123341dc gss_krb5: Fix the error handling path for crypto_sync_skcipher_setkey
If we fail to call crypto_sync_skcipher_setkey, we should free the
memory allocation for cipher, replace err_return with err_free_cipher
to free the memory of cipher.

Fixes: 4891f2d008 ("gss_krb5: import functionality to derive keys into the kernel")
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
2024-07-08 14:10:06 -04:00
..
auth_gss_internal.h mm: change inlined allocation helpers to account at the call site 2024-04-25 20:55:59 -07:00
auth_gss.c SUNRPC: return proper error from gss_wrap_req_priv 2024-05-30 16:12:43 -04:00
gss_generic_token.c sunrpc: Remove unneeded null check 2022-01-06 14:00:20 -05:00
gss_krb5_crypto.c SUNRPC: Revert 561141dd49 2024-03-22 09:52:00 -04:00
gss_krb5_internal.h SUNRPC: Remove net/sunrpc/auth_gss/gss_krb5_seqnum.c 2023-08-29 17:45:22 -04:00
gss_krb5_keys.c gss_krb5: Fix the error handling path for crypto_sync_skcipher_setkey 2024-07-08 14:10:06 -04:00
gss_krb5_mech.c SUNRPC: fix a memleak in gss_import_v2_context 2024-03-01 09:12:04 -05:00
gss_krb5_seal.c SUNRPC: Remove code behind CONFIG_RPCSEC_GSS_KRB5_SIMPLIFIED 2023-08-29 17:45:22 -04:00
gss_krb5_test.c SUNRPC: Remove Kunit tests for the DES3 encryption type 2023-08-29 17:45:22 -04:00
gss_krb5_unseal.c SUNRPC: Do not include crypto/algapi.h 2023-09-15 18:30:43 +08:00
gss_krb5_wrap.c SUNRPC: Remove code behind CONFIG_RPCSEC_GSS_KRB5_SIMPLIFIED 2023-08-29 17:45:22 -04:00
gss_mech_switch.c sunrpc: clean up properly in gss_mech_unregister() 2020-05-28 18:15:00 -04:00
gss_rpc_upcall.c SUNRPC: Ensure that the gssproxy client can start in a connected state 2022-05-07 14:31:15 -04:00
gss_rpc_upcall.h SUNRPC: Add SPDX IDs to some net/sunrpc/auth_gss/ files 2019-02-14 09:54:37 -05:00
gss_rpc_xdr.c SUNRPC: fix some memleaks in gssx_dec_option_array 2024-03-01 09:12:04 -05:00
gss_rpc_xdr.h SUNRPC: Add SPDX IDs to some net/sunrpc/auth_gss/ files 2019-02-14 09:54:37 -05:00
Makefile SUNRPC: Remove net/sunrpc/auth_gss/gss_krb5_seqnum.c 2023-08-29 17:45:22 -04:00
svcauth_gss.c SUNRPC: Fix loop termination condition in gss_free_in_token_pages() 2024-06-03 09:07:55 -04:00
trace.c SUNRPC: remove duplicate include 2020-08-19 13:19:42 -04:00