Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=26c6bc7b812b4157ba929035e467c0f4dd165916
Commit:     26c6bc7b812b4157ba929035e467c0f4dd165916
Parent:     20eebcf09c2d329e4dcdd765634c0a524195e16d
Author:     Jack Morgenstein <[EMAIL PROTECTED]>
AuthorDate: Sun May 13 17:18:23 2007 +0300
Committer:  Roland Dreier <[EMAIL PROTECTED]>
CommitDate: Mon May 14 13:02:58 2007 -0700

    IB/mlx4: Fix uninitialized spinlock for 32-bit archs
    
    uar_lock spinlock was used in mlx4_ib_cq_arm without being initialized
    (this only affects 32-bit archs, because uar_lock is not used on
    64-bit archs and MLX4_INIT_DOORBELL_LOCK() is a NOP).
    
    Signed-off-by: Jack Morgenstein <[EMAIL PROTECTED]>
    Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
---
 drivers/infiniband/hw/mlx4/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/infiniband/hw/mlx4/main.c 
b/drivers/infiniband/hw/mlx4/main.c
index 688ecb4..402f3a2 100644
--- a/drivers/infiniband/hw/mlx4/main.c
+++ b/drivers/infiniband/hw/mlx4/main.c
@@ -489,6 +489,7 @@ static void *mlx4_ib_add(struct mlx4_dev *dev)
        ibdev->uar_map = ioremap(ibdev->priv_uar.pfn << PAGE_SHIFT, PAGE_SIZE);
        if (!ibdev->uar_map)
                goto err_uar;
+       MLX4_INIT_DOORBELL_LOCK(&ibdev->uar_lock);
 
        INIT_LIST_HEAD(&ibdev->pgdir_list);
        mutex_init(&ibdev->pgdir_mutex);
-
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