Signed-off-by: Ian Campbell <[email protected]>
Cc: Grant Likely <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Ben Hutchings <[email protected]>
Cc: Stephen Hemminger <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: "Michał Mirosław" <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
 drivers/net/niu.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/niu.c b/drivers/net/niu.c
index ed47585..0191712 100644
--- a/drivers/net/niu.c
+++ b/drivers/net/niu.c
@@ -3291,7 +3291,7 @@ static void niu_rx_skb_append(struct sk_buff *skb, struct 
page *page,
        int i = skb_shinfo(skb)->nr_frags;
        skb_frag_t *frag = &skb_shinfo(skb)->frags[i];
 
-       frag->page = page;
+       __skb_frag_set_page(frag, page);
        frag->page_offset = offset;
        frag->size = size;
 
@@ -6736,7 +6736,7 @@ static netdev_tx_t niu_start_xmit(struct sk_buff *skb,
                skb_frag_t *frag = &skb_shinfo(skb)->frags[i];
 
                len = frag->size;
-               mapping = np->ops->map_page(np->device, frag->page,
+               mapping = np->ops->map_page(np->device, skb_frag_page(frag),
                                            frag->page_offset, len,
                                            DMA_TO_DEVICE);
 
-- 
1.7.2.5

_______________________________________________
devicetree-discuss mailing list
[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss

Reply via email to