diff options
author | 2025-04-16 14:09:51 +0300 | |
---|---|---|
committer | 2025-04-22 13:42:27 +0200 | |
commit | b77ad30c428e6336833d9f28a9907076f8ad9432 (patch) | |
tree | 651d724adc2db2e8d8eecc2c7904d2aa6ced05f6 | |
parent | Merge branch 'ionic-support-qsfp-cmis' (diff) | |
download | wireguard-linux-b77ad30c428e6336833d9f28a9907076f8ad9432.tar.xz wireguard-linux-b77ad30c428e6336833d9f28a9907076f8ad9432.zip |
rxrpc: rxgk: Set error code in rxgk_yfs_decode_ticket()
Propagate the error code if key_alloc() fails. Don't return
success.
Fixes: 9d1d2b59341f ("rxrpc: rxgk: Implement the yfs-rxgk security class (GSSAPI)")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/Z_-P_1iLDWksH1ik@stanley.mountain
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
-rw-r--r-- | net/rxrpc/rxgk_app.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/rxrpc/rxgk_app.c b/net/rxrpc/rxgk_app.c index 6206a84395b8..b94b77a1c317 100644 --- a/net/rxrpc/rxgk_app.c +++ b/net/rxrpc/rxgk_app.c @@ -141,6 +141,7 @@ int rxgk_yfs_decode_ticket(struct rxrpc_connection *conn, struct sk_buff *skb, KEY_ALLOC_NOT_IN_QUOTA, NULL); if (IS_ERR(key)) { _leave(" = -ENOMEM [alloc %ld]", PTR_ERR(key)); + ret = PTR_ERR(key); goto error; } |