diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 641fd6e7880ebbbf8db1401a9a712e8bbd55a834..ccd5d5735be168ee7c1bbe0244d0beacecbecc4d 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -2716,6 +2716,7 @@ int rpc_clnt_add_xprt(struct rpc_clnt *clnt, xprt = xprt_iter_xprt(&clnt->cl_xpi); if (xps == NULL || xprt == NULL) { rcu_read_unlock(); + xprt_switch_put(xps); return -EAGAIN; } resvport = xprt->resvport;