diff options
author | David S. Miller <davem@davemloft.net> | 2009-06-09 09:21:58 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-09 09:24:06 +0200 |
commit | 5c313e9a7773ec4d7ac554e841fba583f7c63aba (patch) | |
tree | a58c024bee70231f06ecf0302654dfd97dccf639 /net/phonet/pep-gprs.c | |
parent | netfilter: Use frag list abstraction interfaces. (diff) | |
download | linux-5c313e9a7773ec4d7ac554e841fba583f7c63aba.tar.xz linux-5c313e9a7773ec4d7ac554e841fba583f7c63aba.zip |
phonet: Use frag list abstraction interfaces.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/phonet/pep-gprs.c')
-rw-r--r-- | net/phonet/pep-gprs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/phonet/pep-gprs.c b/net/phonet/pep-gprs.c index 851f6a3f8ddd..480839dfc560 100644 --- a/net/phonet/pep-gprs.c +++ b/net/phonet/pep-gprs.c @@ -115,10 +115,10 @@ static int gprs_recv(struct gprs_dev *gp, struct sk_buff *skb) rskb->truesize += rskb->len; /* Avoid nested fragments */ - for (fs = skb_shinfo(skb)->frag_list; fs; fs = fs->next) + skb_walk_frags(skb, fs) flen += fs->len; skb->next = skb_shinfo(skb)->frag_list; - skb_shinfo(skb)->frag_list = NULL; + skb_frag_list_init(skb); skb->len -= flen; skb->data_len -= flen; skb->truesize -= flen; |