phonet: Use frag list abstraction interfaces.
authorDavid S. Miller <davem@davemloft.net>
Tue, 9 Jun 2009 07:21:58 +0000 (00:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jun 2009 07:24:06 +0000 (00:24 -0700)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/phonet/pep-gprs.c
net/phonet/pep.c

index 851f6a3f8dddb34d457d3f3d87ba6f9be1192228..480839dfc5601fa1654d5f4a25606e5ab0fd977e 100644 (file)
@@ -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;
index 8ad2b53338817897c9de166e71bdc4a224b7e62a..eef833ea6d7b6b6d8e2aad01052d3f2337cd9115 100644 (file)
@@ -940,10 +940,10 @@ int pep_write(struct sock *sk, 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;