From: Chuck Lever <chuck.lever@oracle.com>
Date: Tue, 29 Nov 2016 16:04:26 +0000 (-0500)
Subject: svcrdma: Clear xpt_bc_xps in xprt_setup_rdma_bc() error exit arm
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1b9f700b8cfc31089e2dfa5d0905c52fd4529b50;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git

svcrdma: Clear xpt_bc_xps in xprt_setup_rdma_bc() error exit arm

Logic copied from xs_setup_bc_tcp().

Fixes: 39a9beab5acb ('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>
---

diff --git a/net/sunrpc/xprtrdma/svc_rdma_backchannel.c b/net/sunrpc/xprtrdma/svc_rdma_backchannel.c
index 20027f8de129..6035c5a380a6 100644
--- a/net/sunrpc/xprtrdma/svc_rdma_backchannel.c
+++ b/net/sunrpc/xprtrdma/svc_rdma_backchannel.c
@@ -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);