android_kernel_xiaomi_sm8350/net/sunrpc/auth_gss
Gaosheng Cui 79957e626d gss_krb5: Fix the error handling path for crypto_sync_skcipher_setkey
[ Upstream commit a3123341dc358952ce2bf8067fbdfb7eaadf71bb ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-19 05:33:30 +02:00
..
auth_gss_internal.h
auth_gss.c SUNRPC: return proper error from gss_wrap_req_priv 2024-07-05 09:08:16 +02:00
gss_generic_token.c
gss_krb5_crypto.c
gss_krb5_keys.c gss_krb5: Fix the error handling path for crypto_sync_skcipher_setkey 2024-08-19 05:33:30 +02:00
gss_krb5_mech.c
gss_krb5_seal.c
gss_krb5_seqnum.c
gss_krb5_unseal.c
gss_krb5_wrap.c
gss_mech_switch.c
gss_rpc_upcall.c
gss_rpc_upcall.h
gss_rpc_xdr.c SUNRPC: fix some memleaks in gssx_dec_option_array 2024-03-26 18:22:16 -04:00
gss_rpc_xdr.h
Makefile
svcauth_gss.c SUNRPC: Fix loop termination condition in gss_free_in_token_pages() 2024-06-16 13:28:48 +02:00
trace.c