summaryrefslogtreecommitdiffstats
path: root/net/core/kmap_skb.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/kmap_skb.h')
-rw-r--r--net/core/kmap_skb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/kmap_skb.h b/net/core/kmap_skb.h
index 283c2b993fb8..81e1ed7c8383 100644
--- a/net/core/kmap_skb.h
+++ b/net/core/kmap_skb.h
@@ -7,7 +7,7 @@ static inline void *kmap_skb_frag(const skb_frag_t *frag)
local_bh_disable();
#endif
- return kmap_atomic(frag->page, KM_SKB_DATA_SOFTIRQ);
+ return kmap_atomic(skb_frag_page(frag), KM_SKB_DATA_SOFTIRQ);
}
static inline void kunmap_skb_frag(void *vaddr)
OpenPOWER on IntegriCloud