aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/sb1250-mac.c
diff options
context:
space:
mode:
authorMoshe Lazer <moshel@mellanox.com>2013-10-23 02:53:17 -0400
committerRoland Dreier <roland@purestorage.com>2013-11-08 17:42:59 -0500
commitcfd8f1d49b61b20aab77d5af5ec907dc99bb0064 (patch)
treeeba90e9378c870f96e337ae106dcb5e0a65fc27c /drivers/net/ethernet/broadcom/sb1250-mac.c
parent1faacf82dfb3e0027087ff7e6aae5e0643b98a4d (diff)
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>
Diffstat (limited to 'drivers/net/ethernet/broadcom/sb1250-mac.c')
0 files changed, 0 insertions, 0 deletions