kernel: update kernel 4.1 to version 4.1.20
[openwrt.git] / target / linux / generic / patches-4.1 / 080-ipv6-ip6_fragment-fix-headroom-tests-and-skb-leak.patch
index 7de8987..629731c 100644 (file)
@@ -44,7 +44,7 @@ Closes 20532
 
 --- a/net/ipv6/ip6_output.c
 +++ b/net/ipv6/ip6_output.c
-@@ -584,20 +584,22 @@ int ip6_fragment(struct sock *sk, struct
+@@ -587,20 +587,22 @@ int ip6_fragment(struct sock *sk, struct
        }
        mtu -= hlen + sizeof(struct frag_hdr);
  
@@ -69,7 +69,7 @@ Closes 20532
                                goto slow_path_clean;
  
                        /* Partially cloned skb? */
-@@ -614,8 +616,6 @@ int ip6_fragment(struct sock *sk, struct
+@@ -617,8 +619,6 @@ int ip6_fragment(struct sock *sk, struct
  
                err = 0;
                offset = 0;
@@ -78,7 +78,7 @@ Closes 20532
                /* BUILD HEADER */
  
                *prevhdr = NEXTHDR_FRAGMENT;
-@@ -623,8 +623,11 @@ int ip6_fragment(struct sock *sk, struct
+@@ -626,8 +626,11 @@ int ip6_fragment(struct sock *sk, struct
                if (!tmp_hdr) {
                        IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)),
                                      IPSTATS_MIB_FRAGFAILS);
@@ -91,7 +91,7 @@ Closes 20532
  
                __skb_pull(skb, hlen);
                fh = (struct frag_hdr *)__skb_push(skb, sizeof(struct frag_hdr));
-@@ -722,7 +725,6 @@ slow_path:
+@@ -725,7 +728,6 @@ slow_path:
         */
  
        *prevhdr = NEXTHDR_FRAGMENT;