]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Release resource on error flow
authorMoni Shoua <monis@mellanox.com>
Thu, 8 Nov 2018 19:10:08 +0000 (21:10 +0200)
committerLeon Romanovsky <leonro@mellanox.com>
Mon, 12 Nov 2018 20:20:13 +0000 (22:20 +0200)
commitb91c3a8639e00bfb52886eab924f7f06380f82fc
treec6e423ddb1eeffd3fc77e51de955fabbe05493c4
parent558f1aa3ec40c5e761b15445946fc6185dee3483
net/mlx5: Release resource on error flow

Fix reference counting leakage when the event handler aborts due to an
unsupported event for the resource type.

Fixes: 39b9db1d4997 ("net/mlx5_core: Warn on unsupported events of QP/RQ/SQ")
Signed-off-by: Moni Shoua <monis@mellanox.com>
Reviewed-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/qp.c