kernel: bump to 3.18.84
[15.05/openwrt.git] / target / linux / generic / patches-3.18 / 653-disable_netlink_trim.patch
1 --- a/net/netlink/af_netlink.c
2 +++ b/net/netlink/af_netlink.c
3 @@ -1107,24 +1107,7 @@ void netlink_detachskb(struct sock *sk,
4  
5  static struct sk_buff *netlink_trim(struct sk_buff *skb, gfp_t allocation)
6  {
7 -       int delta;
8 -
9         WARN_ON(skb->sk != NULL);
10 -       delta = skb->end - skb->tail;
11 -       if (is_vmalloc_addr(skb->head) || delta * 2 < skb->truesize)
12 -               return skb;
13 -
14 -       if (skb_shared(skb)) {
15 -               struct sk_buff *nskb = skb_clone(skb, allocation);
16 -               if (!nskb)
17 -                       return skb;
18 -               consume_skb(skb);
19 -               skb = nskb;
20 -       }
21 -
22 -       if (!pskb_expand_head(skb, 0, -delta, allocation))
23 -               skb->truesize -= delta;
24 -
25         return skb;
26  }
27