summaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2017-03-05 01:01:55 +0100
committerDavid S. Miller <davem@davemloft.net>2017-03-07 23:13:03 +0100
commit6c4dc75c251721f517e9daeb5370ea606b5b35ce (patch)
treef4f6e12207a9c5262e499b4639fdc9509e4c9d36 /net/sched
parentMerge branch 'rds-fixes' (diff)
downloadlinux-6c4dc75c251721f517e9daeb5370ea606b5b35ce.tar.xz
linux-6c4dc75c251721f517e9daeb5370ea606b5b35ce.zip
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;
}