]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net/sched: properly assign RCU pointer in tcf_chain_tp_insert/remove
authorJiri Pirko <jiri@mellanox.com>
Sat, 20 May 2017 13:01:31 +0000 (15:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 May 2017 15:00:06 +0000 (11:00 -0400)
commit31efcc250a1dea96edca6595a9639d898cf99ae5
treea01dfd6bacdf9d2c395bbd1f7dfc63c191ede3d2
parent218b6a5b23e939caf2064549b1cb61ba22b9d0a1
net/sched: properly assign RCU pointer in tcf_chain_tp_insert/remove

*p_filter_chain is rcu-dereferenced on reader path. So here in writer,
property assign the pointer.

Fixes: 2190d1d0944f ("net: sched: introduce helpers to work with filter chains")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c