]> 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)
commit1e2d4b7bc4215a674b47507d613a590d03501fe9
treec6e423ddb1eeffd3fc77e51de955fabbe05493c4
parentad6edb5015d5fadc7e88a0e144118350d520d894
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: cd7d45627b97 ("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