Skip to content

Commit

Permalink
net/sched: act_skbmod: remove unneeded rcu_read_unlock in tcf_skbmod_…
Browse files Browse the repository at this point in the history
…dump

[ Upstream commit 6c4dc75 ]

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>
  • Loading branch information
khoroshilov authored and gregkh committed Mar 22, 2017
1 parent f157cc1 commit 5f79aab
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/sched/act_skbmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5f79aab

Please sign in to comment.