Subject: [PATCH 32/48] net/sched: act_skbmod: remove unneeded rcu_read_unlock in tcf_skbmod_dump

From: Alexey Khoroshilov <[email-masked]>
Date: Sun, 5 Mar 2017 03:01:55 +0300

[ Upstream commit 6c4dc75c251721f517e9daeb5370ea606b5b35ce ]

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <[email-masked]>
Acked-by: Jamal Hadi Salim <[email-masked]>
Signed-off-by: David S. Miller <[email-masked]>
---
 net/sched/act_skbmod.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/net/sched/act_skbmod.c b/net/sched/act_skbmod.c
index 3b7074e..c736627 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;
 }
-- 
2.1.0