aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorPatrisious Haddad <[email protected]>2025-02-20 06:47:10 +0000
committerLeon Romanovsky <[email protected]>2025-02-23 08:35:18 +0000
commite1a0bdbdfdf08428f0ede5ae49c7f4139ac73ef5 (patch)
tree410228a028efaec4f564190ad57f1c25ffc1471f /net/switchdev/switchdev.c
parentRDMA/mlx5: Fix AH static rate parsing (diff)
downloadkernel-e1a0bdbdfdf08428f0ede5ae49c7f4139ac73ef5.tar.gz
kernel-e1a0bdbdfdf08428f0ede5ae49c7f4139ac73ef5.zip
RDMA/mlx5: Fix bind QP error cleanup flow
When there is a failure during bind QP, the cleanup flow destroys the counter regardless if it is the one that created it or not, which is problematic since if it isn't the one that created it, that counter could still be in use. Fix that by destroying the counter only if it was created during this call. Fixes: 45842fc627c7 ("IB/mlx5: Support statistic q counter configuration") Signed-off-by: Patrisious Haddad <[email protected]> Reviewed-by: Mark Zhang <[email protected]> Link: https://patch.msgid.link/25dfefddb0ebefa668c32e06a94d84e3216257cf.1740033937.git.leon@kernel.org Reviewed-by: Zhu Yanjun <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions