[NET]: Fix kfree(skb)
[deliverable/linux.git] / net / core / skbuff.c
index 3d5646869022240ea2136843a17c2fa76e115750..820761f9eeef92df8929a1517e04e81779148d2c 100644 (file)
@@ -41,7 +41,6 @@
 #include <linux/module.h>
 #include <linux/types.h>
 #include <linux/kernel.h>
-#include <linux/sched.h>
 #include <linux/mm.h>
 #include <linux/interrupt.h>
 #include <linux/in.h>
@@ -2038,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);
 }
This page took 0.032719 seconds and 5 git commands to generate.