Skip to content

Commit

Permalink
net: kfree(napi->skb) => kfree_skb
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roel Kluin authored and David S. Miller committed Mar 19, 2009
1 parent cb0dc77 commit e4a389a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e4a389a

Please sign in to comment.