rxrpc: rxgk: Fix some reference count leaks
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 23 Apr 2025 08:25:45 +0000 (11:25 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 25 Apr 2025 01:06:05 +0000 (18:06 -0700)
commit3a4236c379543878e957004d3415152d28955481
treed7952eef3ae297bba197952d49f45c9d29815424
parentffb0c5c4cf666380b8786e87c954967cbad22ad8
rxrpc: rxgk: Fix some reference count leaks

These paths should call rxgk_put(gk) but they don't.  In the
rxgk_construct_response() function the "goto error;" will free the
"response" skb as well calling rxgk_put() so that's a bonus.

Fixes: 9d1d2b59341f ("rxrpc: rxgk: Implement the yfs-rxgk security class (GSSAPI)")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: David Howells <dhowells@redhat.com>
Link: https://patch.msgid.link/aAikCbsnnzYtVmIA@stanley.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/rxrpc/rxgk.c