ipv6: pointer math error in ip6_tnl_parse_tlv_enc_lim()
[pandora-kernel.git] / net / ipv6 / ip6_tunnel.c
index 922724d..08e4edc 100644 (file)
@@ -413,7 +413,7 @@ parse_tlv_tnl_enc_lim(struct sk_buff *skb, __u8 * raw)
                                if (i + sizeof(*tel) > optlen)
                                        break;
 
-                               tel = (struct ipv6_tlv_tnl_enc_lim *) skb->data + off + i;
+                               tel = (struct ipv6_tlv_tnl_enc_lim *)(skb->data + off + i);
                                /* return index of option if found and valid */
                                if (tel->type == IPV6_TLV_TNL_ENCAP_LIMIT &&
                                    tel->length == 1)