aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/node.c
diff options
context:
space:
mode:
authorMaxim Mikityanskiy <[email protected]>2020-10-22 09:49:51 +0000
committerSaeed Mahameed <[email protected]>2020-11-05 20:17:06 +0000
commit1a50cf9a67ff2241c2949d30bc11c8dd4280eef8 (patch)
treec1426f91a7957e7db696038293a96e03b258a2ac /net/tipc/node.c
parentnet/mlx5e: Fix VXLAN synchronization after function reload (diff)
downloadkernel-1a50cf9a67ff2241c2949d30bc11c8dd4280eef8.tar.gz
kernel-1a50cf9a67ff2241c2949d30bc11c8dd4280eef8.zip
net/mlx5e: Fix incorrect access of RCU-protected xdp_prog
rq->xdp_prog is RCU-protected and should be accessed only with rcu_access_pointer for the NULL check in mlx5e_poll_rx_cq. rq->xdp_prog may change on the fly only from one non-NULL value to another non-NULL value, so the checks in mlx5e_xdp_handle and mlx5e_poll_rx_cq will have the same result during one NAPI cycle, meaning that no additional synchronization is needed. Fixes: fe45386a2082 ("net/mlx5e: Use RCU to protect rq->xdp_prog") Signed-off-by: Maxim Mikityanskiy <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions