]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix usage of rcu-protected pointer
authorVlad Buslov <vladbu@mellanox.com>
Wed, 17 Jun 2020 14:51:53 +0000 (17:51 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 10 Jul 2020 02:27:05 +0000 (19:27 -0700)
commit801969f8ad585f4bf7089741c048b45ec74f55b1
treecafd5173737c94952308e6791bbd5c082eb6a2e3
parent7a62c46f22942139ee882e79e2f998b574c0c72b
net/mlx5e: Fix usage of rcu-protected pointer

In mlx5e_configure_flower() flow pointer is protected by rcu read lock.
However, after cited commit the pointer is being used outside of rcu read
block. Extend the block to protect all pointer accesses.

Fixes: 168a1e713885 ("net/mlx5e: Support tc block sharing for representors")
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c