]> 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)
commit8620435c490bec0c9ee82b2c25b4f1a2f8646b4c
treecafd5173737c94952308e6791bbd5c082eb6a2e3
parent9c50516419fb4ce4594598f194d214c180a4e816
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: a466e9cb01c3 ("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