diff options
Diffstat (limited to 'backport')
-rw-r--r-- | backport/backport-include/linux/skbuff.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backport/backport-include/linux/skbuff.h b/backport/backport-include/linux/skbuff.h index 888d2a04..6fd42497 100644 --- a/backport/backport-include/linux/skbuff.h +++ b/backport/backport-include/linux/skbuff.h @@ -300,4 +300,11 @@ int skb_ensure_writable(struct sk_buff *skb, int write_len); #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0) */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0) +static inline void skb_free_frag(void *data) +{ + put_page(virt_to_head_page(data)); +} +#endif + #endif /* __BACKPORT_SKBUFF_H */ |