Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377442
b: refs/heads/master
c: bd8a703
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jun 25, 2013
1 parent 0d3c74e commit 2bf0ebf
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2b7a5db060f5e7d7f79bc45f818e08b8f244a3b8
refs/heads/master: bd8a7036c06cf15779b31a5397d4afcb12be81ea
1 change: 1 addition & 0 deletions trunk/include/linux/skbuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ static inline struct rtable *skb_rtable(const struct sk_buff *skb)
}

extern void kfree_skb(struct sk_buff *skb);
extern void kfree_skb_list(struct sk_buff *segs);
extern void skb_tx_error(struct sk_buff *skb);
extern void consume_skb(struct sk_buff *skb);
extern void __kfree_skb(struct sk_buff *skb);
Expand Down
20 changes: 12 additions & 8 deletions trunk/net/core/skbuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,15 +483,8 @@ EXPORT_SYMBOL(skb_add_rx_frag);

static void skb_drop_list(struct sk_buff **listp)
{
struct sk_buff *list = *listp;

kfree_skb_list(*listp);
*listp = NULL;

do {
struct sk_buff *this = list;
list = list->next;
kfree_skb(this);
} while (list);
}

static inline void skb_drop_fraglist(struct sk_buff *skb)
Expand Down Expand Up @@ -651,6 +644,17 @@ void kfree_skb(struct sk_buff *skb)
}
EXPORT_SYMBOL(kfree_skb);

void kfree_skb_list(struct sk_buff *segs)
{
while (segs) {
struct sk_buff *next = segs->next;

kfree_skb(segs);
segs = next;
}
}
EXPORT_SYMBOL(kfree_skb_list);

/**
* skb_tx_error - report an sk_buff xmit error
* @skb: buffer that triggered an error
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ipv4/gre.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ static struct sk_buff *gre_gso_segment(struct sk_buff *skb,

err = __skb_linearize(skb);
if (err) {
kfree_skb(segs);
kfree_skb_list(segs);
segs = ERR_PTR(err);
goto out;
}
Expand Down

0 comments on commit 2bf0ebf

Please sign in to comment.