kernel_samsung_a53x/net/sunrpc/auth_gss
Gaosheng Cui 28f59fc31b 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: 4891f2d008e4 ("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-11-23 23:20:08 +01:00
..
auth_gss.c SUNRPC: return proper error from gss_wrap_req_priv 2024-11-19 14:19:02 +01:00
auth_gss_internal.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gss_generic_token.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gss_krb5_crypto.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gss_krb5_keys.c gss_krb5: Fix the error handling path for crypto_sync_skcipher_setkey 2024-11-23 23:20:08 +01:00
gss_krb5_mech.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gss_krb5_seal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gss_krb5_seqnum.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gss_krb5_unseal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gss_krb5_wrap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gss_mech_switch.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gss_rpc_upcall.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gss_rpc_upcall.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gss_rpc_xdr.c SUNRPC: Add xdr_set_scratch_page() and xdr_reset_scratch_buffer() 2024-11-19 12:27:20 +01:00
gss_rpc_xdr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
svcauth_gss.c Revert "SUNRPC: Use RMW bitops in single-threaded hot paths" 2024-11-19 12:28:29 +01:00
trace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00