uar_lock spinlock was used in mlx4_ib_cq_arm without being
initialized (on 32-bit hosts, in 64-bit atomic writes).

Signed-off-by: Jack Morgenstein <[EMAIL PROTECTED]>

diff --git a/drivers/infiniband/hw/mlx4/main.c 
b/drivers/infiniband/hw/mlx4/main.c
index 7959698..ad107f2 100644
--- a/drivers/infiniband/hw/mlx4/main.c
+++ b/drivers/infiniband/hw/mlx4/main.c
@@ -561,6 +561,7 @@ static void *mlx4_ib_add(struct mlx4_dev *dev)
 
        spin_lock_init(&ibdev->sm_lock);
        mutex_init(&ibdev->cap_mask_mutex);
+       MLX4_INIT_DOORBELL_LOCK(&ibdev->uar_lock);
 
        if (ib_register_device(&ibdev->ib_dev))
                goto err_map;
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to