Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=cb164b8c6a2bdf995c938e5f157d41465b18e5c3
Commit:     cb164b8c6a2bdf995c938e5f157d41465b18e5c3
Parent:     aeb100e2466b11e6087ee6f467b712e119213158
Author:     Sean Hefty <[EMAIL PROTECTED]>
AuthorDate: Mon Mar 5 12:50:17 2007 -0800
Committer:  Roland Dreier <[EMAIL PROTECTED]>
CommitDate: Tue Mar 6 12:41:44 2007 -0800

    RDMA/cma: 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.  Fix this by using kzalloc() to make
    sure all pointers are NULL.
    
    Signed-off-by: Sean Hefty <[EMAIL PROTECTED]>
    Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
---
 drivers/infiniband/core/cma.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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;
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to