[generic]: add 3.7-rc6 support (patch 820 still has to be fixed)
[openwrt.git] / target / linux / generic / patches-3.7 / 653-disable_netlink_trim.patch
1 --- a/net/netlink/af_netlink.c
2 +++ b/net/netlink/af_netlink.c
3 @@ -895,25 +895,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         skb_orphan(skb);
10 -
11 -       delta = skb->end - skb->tail;
12 -       if (delta * 2 < skb->truesize)
13 -               return skb;
14 -
15 -       if (skb_shared(skb)) {
16 -               struct sk_buff *nskb = skb_clone(skb, allocation);
17 -               if (!nskb)
18 -                       return skb;
19 -               consume_skb(skb);
20 -               skb = nskb;
21 -       }
22 -
23 -       if (!pskb_expand_head(skb, 0, -delta, allocation))
24 -               skb->truesize -= delta;
25 -
26         return skb;
27  }
28