]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitc1aea9e1765a047c7397da30f52315c43e3501fb
treecafd5173737c94952308e6791bbd5c082eb6a2e3
parent2fb15e72c0d7fc5fb05aefd3a7f0d70cf39d3ad4
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: 553f9328385d ("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