]> git.karo-electronics.de Git - linux-beck.git/commit
net/mlx5: Don't unlock fte while still using it
authorMark Bloch <markb@mellanox.com>
Mon, 5 Sep 2016 10:58:04 +0000 (10:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Feb 2017 14:11:43 +0000 (15:11 +0100)
commit0e0751cdfa466923218ff59a8624fa8d1050b6fb
tree72acb1080a2a1ecc4be6f19d51e2718e179e8d52
parent7c4c32a2976e061f3cc9cecf54ad20dd8861a212
net/mlx5: Don't unlock fte while still using it

commit 0fd758d6112f867b2cc6df0f6a856048ff99b211 upstream.

When adding a new rule to an fte, we need to hold the fte lock
until we add that rule to the fte and increase the fte ref count.

Fixes: 0c56b97503fd ("net/mlx5_core: Introduce flow steering API")
Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c