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)
commit698114968a22f6c0c9f42e983ba033cc36bb7217
treec6e423ddb1eeffd3fc77e51de955fabbe05493c4
parentc74d90c11c05bdfd78f8e29ee96b8a6f23daea99
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: a14c2d4beee5 ("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