aboutsummaryrefslogtreecommitdiffstats
path: root/net/9p/trans_rdma.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/9p/trans_rdma.c')
-rw-r--r--net/9p/trans_rdma.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/9p/trans_rdma.c b/net/9p/trans_rdma.c
index a7fe63f704d5..2f1fe5fc1228 100644
--- a/net/9p/trans_rdma.c
+++ b/net/9p/trans_rdma.c
@@ -588,6 +588,9 @@ rdma_create_trans(struct p9_client *client, const char *addr, char *args)
588 if (IS_ERR(rdma->cm_id)) 588 if (IS_ERR(rdma->cm_id))
589 goto error; 589 goto error;
590 590
591 /* Associate the client with the transport */
592 client->trans = rdma;
593
591 /* Resolve the server's address */ 594 /* Resolve the server's address */
592 rdma->addr.sin_family = AF_INET; 595 rdma->addr.sin_family = AF_INET;
593 rdma->addr.sin_addr.s_addr = in_aton(addr); 596 rdma->addr.sin_addr.s_addr = in_aton(addr);
@@ -668,7 +671,6 @@ rdma_create_trans(struct p9_client *client, const char *addr, char *args)
668 if (err || (rdma->state != P9_RDMA_CONNECTED)) 671 if (err || (rdma->state != P9_RDMA_CONNECTED))
669 goto error; 672 goto error;
670 673
671 client->trans = rdma;
672 client->status = Connected; 674 client->status = Connected;
673 675
674 return 0; 676 return 0;