net/sched: act_skbmod: remove unneeded rcu_read_unlock in tcf_skbmod_dump
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sun, 5 Mar 2017 00:01:55 +0000 (03:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Mar 2017 22:13:03 +0000 (14:13 -0800)
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>
net/sched/act_skbmod.c

index 3b7074e2302487808dc1d16b01143d0b292ebe4e..c736627f8f4a0e0ff86db535ec95459a417e4ada 100644 (file)
@@ -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;
 }