]> git.baikalelectronics.ru Git - kernel.git/commit
cls_u32: add missing RCU annotation.
authorPaolo Abeni <pabeni@redhat.com>
Fri, 2 Feb 2018 15:02:22 +0000 (16:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Feb 2018 00:25:03 +0000 (19:25 -0500)
commit9043b70e182888012c3bcd4545b9f3fb54909d56
tree4a415b70f6fb7356d1c093e9c4cc12e17d3052bb
parent855e69c564a4e1e0dd75ae86097fa88f4c4749d1
cls_u32: add missing RCU annotation.

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: 7616adbae43c ("net: sched: add cls_u32 offload hooks for netdevs")
Fixes: c0124bea0286 ("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>
net/sched/cls_u32.c