Skip to content

Commit

Permalink
[IPV6]: ip6ip6_lock is not unlocked in error path.
Browse files Browse the repository at this point in the history
From: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ken-ichirou MATSUZAWA authored and David S. Miller committed Nov 9, 2005
1 parent 44fd026 commit 9f0ede5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ipv6/ip6_tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ ip6ip6_rcv(struct sk_buff **pskb, unsigned int *nhoffp)

if ((t = ip6ip6_tnl_lookup(&ipv6h->saddr, &ipv6h->daddr)) != NULL) {
if (!xfrm6_policy_check(NULL, XFRM_POLICY_IN, skb)) {
read_unlock(&ip6ip6_lock);
kfree_skb(skb);
return 0;
}
Expand Down

0 comments on commit 9f0ede5

Please sign in to comment.