summaryrefslogtreecommitdiffstats
path: root/net/sched/act_sample.c
diff options
context:
space:
mode:
authorYotam Gigi <yotamg@mellanox.com>2017-01-31 10:33:54 +0100
committerDavid S. Miller <davem@davemloft.net>2017-02-01 20:10:03 +0100
commitf3b20313aef93f9cfda76fec2c05625f88510f18 (patch)
tree1e4376749b1368e119885639c82edb152d2f2545 /net/sched/act_sample.c
parentnet/sched: act_sample: Fix error path in init (diff)
downloadlinux-f3b20313aef93f9cfda76fec2c05625f88510f18.tar.xz
linux-f3b20313aef93f9cfda76fec2c05625f88510f18.zip
net/sched: act_psample: Remove unnecessary ASSERT_RTNL
The ASSERT_RTNL is not necessary in the init function, as it does not touch any rtnl protected structures, as opposed to the mirred action which does have to hold a net device. Reported-by: Cong Wang <xiyou.wangcong@gmail.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Yotam Gigi <yotamg@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_sample.c')
-rw-r--r--net/sched/act_sample.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sched/act_sample.c b/net/sched/act_sample.c
index 02b67495829c..0b8217b4763f 100644
--- a/net/sched/act_sample.c
+++ b/net/sched/act_sample.c
@@ -76,7 +76,6 @@ static int tcf_sample_init(struct net *net, struct nlattr *nla,
}
s = to_sample(*a);
- ASSERT_RTNL();
s->tcf_action = parm->action;
s->rate = nla_get_u32(tb[TCA_SAMPLE_RATE]);
s->psample_group_num = nla_get_u32(tb[TCA_SAMPLE_PSAMPLE_GROUP]);