Skip to content

Commit

Permalink
svcrdma: Clear xpt_bc_xps in xprt_setup_rdma_bc() error exit arm
Browse files Browse the repository at this point in the history
Logic copied from xs_setup_bc_tcp().

Fixes: 39a9bea ('rpc: share one xps between all backchannels')
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
Chuck Lever authored and J. Bruce Fields committed Nov 30, 2016
1 parent 7ba630f commit 1b9f700
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/sunrpc/xprtrdma/svc_rdma_backchannel.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ xprt_setup_rdma_bc(struct xprt_create *args)
out_fail:
xprt_rdma_free_addresses(xprt);
args->bc_xprt->xpt_bc_xprt = NULL;
args->bc_xprt->xpt_bc_xps = NULL;
xprt_put(xprt);
xprt_free(xprt);
return ERR_PTR(-EINVAL);
Expand Down

0 comments on commit 1b9f700

Please sign in to comment.