Skip to content

Commit

Permalink
sit: Add missing kfree_skb() on pskb_may_pull() failure.
Browse files Browse the repository at this point in the history
Noticed by Paul Marks <paul@pmarks.net>.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed May 9, 2008
1 parent f08269d commit 36ca34c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/sit.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,9 +596,9 @@ static int ipip6_rcv(struct sk_buff *skb)
}

icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0);
kfree_skb(skb);
read_unlock(&ipip6_lock);
out:
kfree_skb(skb);
return 0;
}

Expand Down

0 comments on commit 36ca34c

Please sign in to comment.