mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-13 07:31:07 +00:00
cls_u32: add missing RCU annotation.
[ Upstream commit058a6c0334] In a couple of points of the control path, n->ht_down is currently accessed without the required RCU annotation. The accesses are safe, but sparse complaints. Since we already held the rtnl lock, let use rtnl_dereference(). Fixes:a1b7c5fd7f("net: sched: add cls_u32 offload hooks for netdevs") Fixes:de5df63228("net: sched: cls_u32 changes to knode must appear atomic to readers") Signed-off-by: Paolo Abeni <pabeni@redhat.com> Acked-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a742a89695
commit
ce6fa12a7b
1 changed files with 7 additions and 5 deletions
Loading…
Add table
Add a link
Reference in a new issue