]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/ipv6/ip6_output.c
net: fix bogus cast in skb_pagelen() and use unsigned variables
[karo-tx-linux.git] / net / ipv6 / ip6_output.c
index b37054b1873d4951b5c9e33c4cea775cf2af187a..312cbd0e5038de3031c87d600d13006472b2432d 100644 (file)
@@ -625,7 +625,7 @@ int ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
 
        hroom = LL_RESERVED_SPACE(rt->dst.dev);
        if (skb_has_frag_list(skb)) {
-               int first_len = skb_pagelen(skb);
+               unsigned int first_len = skb_pagelen(skb);
                struct sk_buff *frag2;
 
                if (first_len - hlen > mtu ||