]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/mlx4_vnic: Initialize new fields of mlx4_ib_qp
authorYuval Shaia <yuval.shaia@oracle.com>
Sun, 16 Aug 2015 04:00:45 +0000 (21:00 -0700)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Wed, 26 Aug 2015 18:03:30 +0000 (11:03 -0700)
commit0bffc87e1ac8123ec36abc13d1c9fb7385a8849c
tree2b09336217ce01b4dea2c4c100be1d7d755ab17b
parent096c42657adbf3bee9e817e67fc1f6ee8f43093a
net/mlx4_vnic: Initialize new fields of mlx4_ib_qp

Initializing the three new mlx4_ib_qp's fields - qps_list, cq_recv_list
and cq_send_list.
w/o initializing these new fields, kernel crashed in destroy_qp_common
when trying to remove them from the list.
The functions get_cqs, mlx4_ib_lock_cqs and mlx4_ib_unlock_cqs moved as
inline functions to mlx4_ib.h so it can be called also from mlx4_vnic.

Orabug: 21530835

Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
drivers/infiniband/hw/mlx4/mlx4_ib.h
drivers/infiniband/hw/mlx4/qp.c
drivers/net/ethernet/mellanox/mlx4_vnic/vnic_qp.c