]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
rxrpc: Fix error handling in rxgk_extract_token()
authorDavid Howells <dhowells@redhat.com>
Thu, 23 Apr 2026 20:09:08 +0000 (21:09 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 23 Apr 2026 21:29:16 +0000 (14:29 -0700)
Fix a missing bit of error handling in rxgk_extract_token(): in the event
that rxgk_decrypt_skb() returns -ENOMEM, it should just return that rather
than continuing on (for anything else, it generates an abort).

Fixes: 64863f4ca494 ("rxrpc: Fix unhandled errors in rxgk_verify_packet_integrity()")
Closes: https://sashiko.dev/#/patchset/20260422161438.2593376-4-dhowells@redhat.com
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: Jeffrey Altman <jaltman@auristor.com>
cc: Simon Horman <horms@kernel.org>
cc: linux-afs@lists.infradead.org
cc: stable@kernel.org
Link: https://patch.msgid.link/20260423200909.3049438-4-dhowells@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/rxrpc/rxgk_app.c

index 5587639d60c5388874a0992653754fe438e56b7a..0ef2a29eb695815d8e0f416f6e49731894cee497 100644 (file)
@@ -245,6 +245,7 @@ int rxgk_extract_token(struct rxrpc_connection *conn, struct sk_buff *skb,
                if (ret != -ENOMEM)
                        return rxrpc_abort_conn(conn, skb, ec, ret,
                                                rxgk_abort_resp_tok_dec);
+               return ret;
        }
 
        ret = conn->security->default_decode_ticket(conn, skb, ticket_offset,