From: Alexey Khoroshilov Date: Sun, 5 Mar 2017 00:01:55 +0000 (+0300) Subject: net/sched: act_skbmod: remove unneeded rcu_read_unlock in tcf_skbmod_dump X-Git-Tag: MMI-PSA29.97-13-9~5979^2~60 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6c4dc75c251721f517e9daeb5370ea606b5b35ce;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Acked-by: Jamal Hadi Salim Signed-off-by: David S. Miller --- 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; }