[ofa-general] [GIT PULL] 2.6.21-rc3 please pull rdma-dev.git
Sean Hefty
sean.hefty at intel.com
Mon Mar 5 12:29:40 PST 2007
Roland, please pull from:
git.openfabrics.org/~shefty/rdma-dev.git for-roland
This contains one bug fix for rc3:
rdma_cm: initialize rdma_bind_list in cma_alloc_any_port
The struct rdma_bind_list fields for hlist are not being initialized,
resulting in a corrupted list.
Signed-off-by: Sean Hefty <sean.hefty at intel.com>
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index d441815..fde92ce 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -1821,7 +1821,7 @@ static int cma_alloc_port(struct idr *ps, struct
rdma_id_private *id_priv,
struct rdma_bind_list *bind_list;
int port, ret;
- bind_list = kmalloc(sizeof *bind_list, GFP_KERNEL);
+ bind_list = kzalloc(sizeof *bind_list, GFP_KERNEL);
if (!bind_list)
return -ENOMEM;
More information about the general
mailing list