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