[openib-general] [PATCH 3/13] Re-write rdma_listen error cases
Krishna Kumar
krkumar2 at in.ibm.com
Wed Oct 11 21:53:28 PDT 2006
diff -ruNp org/drivers/infiniband/core/cma.c new/drivers/infiniband/core/cma.c
--- org/drivers/infiniband/core/cma.c 2006-10-09 16:40:04.000000000 +0530
+++ new/drivers/infiniband/core/cma.c 2006-10-09 16:52:03.000000000 +0530
@@ -1208,13 +1208,13 @@ int rdma_listen(struct rdma_cm_id *id, i
switch (rdma_node_get_transport(id->device->node_type)) {
case RDMA_TRANSPORT_IB:
ret = cma_ib_listen(id_priv);
- if (ret)
- goto err;
break;
default:
ret = -ENOSYS;
- goto err;
+ break;
}
+ if (ret)
+ goto err;
} else
cma_listen_on_all(id_priv);
More information about the general
mailing list