summaryrefslogtreecommitdiffstats
path: root/net/rxrpc/call_object.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2022-08-26 06:45:38 +0200
committerAndrew Morton <akpm@linux-foundation.org>2022-08-26 06:45:38 +0200
commitec6624452e36158d0813758d837f7a2263a4109d (patch)
treed87a97b450d21edc0fafcfcb1e5b13020249bd60 /net/rxrpc/call_object.c
parentMerge branch 'linus' (diff)
parentMerge tag 'net-6.0-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/netd... (diff)
downloadlinux-ec6624452e36158d0813758d837f7a2263a4109d.tar.xz
linux-ec6624452e36158d0813758d837f7a2263a4109d.zip
Merge branch 'linus'
Diffstat (limited to 'net/rxrpc/call_object.c')
-rw-r--r--net/rxrpc/call_object.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/rxrpc/call_object.c b/net/rxrpc/call_object.c
index 84d0a4109645..6401cdf7a624 100644
--- a/net/rxrpc/call_object.c
+++ b/net/rxrpc/call_object.c
@@ -285,8 +285,10 @@ struct rxrpc_call *rxrpc_new_client_call(struct rxrpc_sock *rx,
_enter("%p,%lx", rx, p->user_call_ID);
limiter = rxrpc_get_call_slot(p, gfp);
- if (!limiter)
+ if (!limiter) {
+ release_sock(&rx->sk);
return ERR_PTR(-ERESTARTSYS);
+ }
call = rxrpc_alloc_client_call(rx, srx, gfp, debug_id);
if (IS_ERR(call)) {