aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/xprtsock.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index d7f97ef26590..2d78d95955ab 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -2530,8 +2530,10 @@ static struct rpc_xprt *xs_setup_xprt(struct xprt_create *args,
2530 int err; 2530 int err;
2531 err = xs_init_anyaddr(args->dstaddr->sa_family, 2531 err = xs_init_anyaddr(args->dstaddr->sa_family,
2532 (struct sockaddr *)&new->srcaddr); 2532 (struct sockaddr *)&new->srcaddr);
2533 if (err != 0) 2533 if (err != 0) {
2534 xprt_free(xprt);
2534 return ERR_PTR(err); 2535 return ERR_PTR(err);
2536 }
2535 } 2537 }
2536 2538
2537 return xprt; 2539 return xprt;