net: kfree(napi->skb) => kfree_skb
authorRoel Kluin <roel.kluin@gmail.com>
Thu, 19 Mar 2009 06:12:13 +0000 (23:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Mar 2009 06:12:13 +0000 (23:12 -0700)
struct sk_buff pointers should be freed with kfree_skb.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c

index 2565f6d1d66198abff8a73c7097f19b09e908cc8..e3fe5c7056067520639b98eda2216a21a67d2a3a 100644 (file)
@@ -2672,7 +2672,7 @@ void netif_napi_del(struct napi_struct *napi)
        struct sk_buff *skb, *next;
 
        list_del_init(&napi->dev_list);
-       kfree(napi->skb);
+       kfree_skb(napi->skb);
 
        for (skb = napi->gro_list; skb; skb = next) {
                next = skb->next;