]> Git Repo - linux.git/commit
gss_krb5: Fix the error handling path for crypto_sync_skcipher_setkey
authorGaosheng Cui <[email protected]>
Sat, 6 Jul 2024 06:50:08 +0000 (14:50 +0800)
committerChuck Lever <[email protected]>
Mon, 8 Jul 2024 18:10:06 +0000 (14:10 -0400)
commita3123341dc358952ce2bf8067fbdfb7eaadf71bb
tree7732fbe47558a135c4b4c1ec02064caf2a973466
parentf436833a3dc1d767aa754010bc8e6f341dba2544
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: 4891f2d008e4 ("gss_krb5: import functionality to derive keys into the kernel")
Signed-off-by: Gaosheng Cui <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
net/sunrpc/auth_gss/gss_krb5_keys.c
This page took 0.055661 seconds and 4 git commands to generate.