summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2017-03-05 03:01:55 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-22 12:56:59 +0100
commita6ff06211b846bc812b22f0c2422bd5bbc41ec83 (patch)
treed85db56e747d516217318b37319eb5e1aae14c9b
parent27d0c80f10893af0274930cb83a3c4ba65010159 (diff)
downloadlinux-stable-a6ff06211b846bc812b22f0c2422bd5bbc41ec83.tar.gz
linux-stable-a6ff06211b846bc812b22f0c2422bd5bbc41ec83.tar.bz2
linux-stable-a6ff06211b846bc812b22f0c2422bd5bbc41ec83.zip
net/sched: act_skbmod: remove unneeded rcu_read_unlock in tcf_skbmod_dump
[ Upstream commit 6c4dc75c251721f517e9daeb5370ea606b5b35ce ] 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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;
}