Browse Source

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>
Alexey Khoroshilov 8 years ago
parent
commit
6c4dc75c25
1 changed files with 0 additions and 1 deletions
  1. 0 1
      net/sched/act_skbmod.c

+ 0 - 1
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;
 	return skb->len;
 nla_put_failure:
 nla_put_failure:
-	rcu_read_unlock();
 	nlmsg_trim(skb, b);
 	nlmsg_trim(skb, b);
 	return -1;
 	return -1;
 }
 }