diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2017-03-04 19:01:55 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-22 07:43:33 -0400 |
commit | 5f79aab41dedaa869ef3c706e4c0872318665884 (patch) | |
tree | 886d4696ebea22c959bfda48ba16a38cc5d91074 | |
parent | f157cc1d7251403c950d960e3bcf988c14d9deda (diff) |
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.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sched/act_skbmod.c b/net/sched/act_skbmod.c index e7d96381c908..f85313d60a4d 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, | |||
228 | 228 | ||
229 | return skb->len; | 229 | return skb->len; |
230 | nla_put_failure: | 230 | nla_put_failure: |
231 | rcu_read_unlock(); | ||
232 | nlmsg_trim(skb, b); | 231 | nlmsg_trim(skb, b); |
233 | return -1; | 232 | return -1; |
234 | } | 233 | } |