mac80211: update brcmfmac including missing boardrev workaround
[openwrt.git] / package / kernel / mac80211 / patches / 004-backports-add-skb_free_frag.patch
1 From: Felix Fietkau <nbd@openwrt.org>
2 Date: Thu, 28 Jan 2016 15:16:35 +0100
3 Subject: [PATCH] backports: add skb_free_frag()
4
5 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
6 ---
7
8 --- a/backport-include/linux/skbuff.h
9 +++ b/backport-include/linux/skbuff.h
10 @@ -300,4 +300,11 @@ int skb_ensure_writable(struct sk_buff *
11  
12  #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0) */
13  
14 +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0)
15 +static inline void skb_free_frag(void *data)
16 +{
17 +       put_page(virt_to_head_page(data));
18 +}
19 +#endif
20 +
21  #endif /* __BACKPORT_SKBUFF_H */