]> err.no Git - linux-2.6/commitdiff
sit: Add missing kfree_skb() on pskb_may_pull() failure.
authorDavid S. Miller <davem@davemloft.net>
Fri, 9 May 2008 06:40:26 +0000 (23:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 May 2008 06:40:26 +0000 (23:40 -0700)
Noticed by Paul Marks <paul@pmarks.net>.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sit.c

index 4b2f1033994e2d1f6c2c94ca18b7e202956f3688..5a6fab95569fa14e12f40d74121ef7ba5321a0fd 100644 (file)
@@ -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;
 }