mirror_ubuntu-kernels/drivers/infiniband/hw/mlx5
Moshe Lazer cfd8f1d49b IB/mlx5: Fix srq free in destroy qp
On destroy QP the driver walks over the relevant CQ and removes CQEs
reported for the destroyed QP.  It also frees the related SRQ entry
without checking that this is actually an SRQ-related CQE.  In case of
a CQ used for both send and receive QP, we could free SRQ entries for
send CQEs.  This patch resolves this issue by verifying that this is a
SRQ related CQE by checking the SRQ number in the CQE is not zero.

Signed-off-by: Moshe Lazer <moshel@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
2013-11-08 14:42:59 -08:00
..
ah.c mlx5: Add driver for Mellanox Connect-IB adapters 2013-07-08 10:32:24 -07:00
cq.c IB/mlx5: Fix srq free in destroy qp 2013-11-08 14:42:59 -08:00
doorbell.c mlx5: Add driver for Mellanox Connect-IB adapters 2013-07-08 10:32:24 -07:00
Kconfig mlx5: Add driver for Mellanox Connect-IB adapters 2013-07-08 10:32:24 -07:00
mad.c mlx5: Add driver for Mellanox Connect-IB adapters 2013-07-08 10:32:24 -07:00
main.c IB/mlx5: Multithreaded create MR 2013-11-08 14:42:59 -08:00
Makefile mlx5: Add driver for Mellanox Connect-IB adapters 2013-07-08 10:32:24 -07:00
mem.c mlx5: Add driver for Mellanox Connect-IB adapters 2013-07-08 10:32:24 -07:00
mlx5_ib.h IB/mlx5: Multithreaded create MR 2013-11-08 14:42:59 -08:00
mr.c IB/mlx5: Multithreaded create MR 2013-11-08 14:42:59 -08:00
qp.c IB/mlx5: Fix overflow check in IB_WR_FAST_REG_MR 2013-11-08 14:42:59 -08:00
srq.c IB/mlx5: Simplify mlx5_ib_destroy_srq 2013-11-08 14:42:59 -08:00
user.h mlx5: Add driver for Mellanox Connect-IB adapters 2013-07-08 10:32:24 -07:00