summaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2017-03-05 03:01:55 +0300
committerDavid S. Miller <davem@davemloft.net>2017-03-07 14:13:03 -0800
commit6c4dc75c251721f517e9daeb5370ea606b5b35ce (patch)
treef4f6e12207a9c5262e499b4639fdc9509e4c9d36 /net/sched
parent72c3fbf8dc90988bd04123b88b70ffffa206582d (diff)
downloadlinux-6c4dc75c251721f517e9daeb5370ea606b5b35ce.tar.bz2
net/sched: act_skbmod: remove unneeded rcu_read_unlock in tcf_skbmod_dump
Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/act_skbmod.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sched/act_skbmod.c b/net/sched/act_skbmod.c
index 3b7074e23024..c736627f8f4a 100644
--- a/net/sched/act_skbmod.c
+++ b/net/sched/act_skbmod.c
@@ -228,7 +228,6 @@ static int tcf_skbmod_dump(struct sk_buff *skb, struct tc_action *a,
return skb->len;
nla_put_failure:
- rcu_read_unlock();
nlmsg_trim(skb, b);
return -1;
}