Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149711
b: refs/heads/master
c: 11bc942
h: refs/heads/master
i:
  149709: 06db6b4
  149707: 9de07a2
  149703: 9abfe16
  149695: b230218
v: v3
  • Loading branch information
Andy Grover authored and David S. Miller committed Apr 10, 2009
1 parent 36e707f commit f8deddc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5cd2fe6d54c91aa76893b3034f5f3473063c0202
refs/heads/master: 11bc9421da3040c71fc96da1a31e95217e8cf2af
12 changes: 6 additions & 6 deletions trunk/net/rds/rdma_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

#include "rdma_transport.h"

static struct rdma_cm_id *rds_iw_listen_id;
static struct rdma_cm_id *rds_rdma_listen_id;

int rds_rdma_cm_event_handler(struct rdma_cm_id *cm_id,
struct rdma_cm_event *event)
Expand Down Expand Up @@ -161,7 +161,7 @@ static int __init rds_rdma_listen_init(void)

rdsdebug("cm %p listening on port %u\n", cm_id, RDS_PORT);

rds_iw_listen_id = cm_id;
rds_rdma_listen_id = cm_id;
cm_id = NULL;
out:
if (cm_id)
Expand All @@ -171,10 +171,10 @@ static int __init rds_rdma_listen_init(void)

static void rds_rdma_listen_stop(void)
{
if (rds_iw_listen_id) {
rdsdebug("cm %p\n", rds_iw_listen_id);
rdma_destroy_id(rds_iw_listen_id);
rds_iw_listen_id = NULL;
if (rds_rdma_listen_id) {
rdsdebug("cm %p\n", rds_rdma_listen_id);
rdma_destroy_id(rds_rdma_listen_id);
rds_rdma_listen_id = NULL;
}
}

Expand Down

0 comments on commit f8deddc

Please sign in to comment.