]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[NET]: Fix kfree(skb)
authorPatrick McHardy <kaber@trash.net>
Tue, 27 Feb 2007 17:57:37 +0000 (09:57 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 28 Feb 2007 17:42:14 +0000 (09:42 -0800)
Signed-off-by: Patrick McHardy <kaber@trash.net>
Acked-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c
net/dccp/output.c
net/netlabel/netlabel_unlabeled.c
net/xfrm/xfrm_user.c

index f89ff151cfabff32a6436c98fef66e243118bc20..820761f9eeef92df8929a1517e04e81779148d2c 100644 (file)
@@ -2037,7 +2037,7 @@ struct sk_buff *skb_segment(struct sk_buff *skb, int features)
 err:
        while ((skb = segs)) {
                segs = skb->next;
-               kfree(skb);
+               kfree_skb(skb);
        }
        return ERR_PTR(err);
 }
index f5c6aca1dfa45557a31ed6f9fe0a9b0d4f109a9f..3282f2f2291b3bcb313e0feaeaa91dea5824622e 100644 (file)
@@ -269,7 +269,7 @@ void dccp_write_xmit(struct sock *sk, int block)
                                         err);
                } else {
                        dccp_pr_debug("packet discarded\n");
-                       kfree(skb);
+                       kfree_skb(skb);
                }
        }
 }
index 5bc37181662e5e0a51281093c08d590c199cac2e..b931edee4b8be1c3836a200461915a0ed9d4e8a9 100644 (file)
@@ -173,7 +173,7 @@ static int netlbl_unlabel_list(struct sk_buff *skb, struct genl_info *info)
        return 0;
 
 list_failure:
-       kfree(ans_skb);
+       kfree_skb(ans_skb);
        return ret_val;
 }
 
index 924a2fefcd945c3e0fcce7ccac2a7a1d8879be00..956cfe0ff7f82b91067fae393ae9085538ad5972 100644 (file)
@@ -1401,7 +1401,7 @@ static int xfrm_get_ae(struct sk_buff *skb, struct nlmsghdr *nlh,
 
        x = xfrm_state_lookup(&id->daddr, id->spi, id->proto, id->family);
        if (x == NULL) {
-               kfree(r_skb);
+               kfree_skb(r_skb);
                return -ESRCH;
        }