Re: [patch] ipv6: pointer math error in ip6_tnl_parse_tlv_enc_lim()

2017-02-01 Thread David Miller
From: Dan Carpenter Date: Wed, 1 Feb 2017 11:46:32 +0300 > Casting is a high precedence operation but "off" and "i" are in terms of > bytes so we need to have some parenthesis here. > > Fixes: fbfa743a9d2a ("ipv6: fix ip6_tnl_parse_tlv_enc_lim()") > Signed-off-by: Dan Carpenter Applied, thanks

Re: [patch] ipv6: pointer math error in ip6_tnl_parse_tlv_enc_lim()

2017-02-01 Thread Eric Dumazet
On Wed, 2017-02-01 at 11:46 +0300, Dan Carpenter wrote: > Casting is a high precedence operation but "off" and "i" are in terms of > bytes so we need to have some parenthesis here. > > Fixes: fbfa743a9d2a ("ipv6: fix ip6_tnl_parse_tlv_enc_lim()") > Signed-off-by: Dan Carpenter Silly me. Thanks D

[patch] ipv6: pointer math error in ip6_tnl_parse_tlv_enc_lim()

2017-02-01 Thread Dan Carpenter
Casting is a high precedence operation but "off" and "i" are in terms of bytes so we need to have some parenthesis here. Fixes: fbfa743a9d2a ("ipv6: fix ip6_tnl_parse_tlv_enc_lim()") Signed-off-by: Dan Carpenter diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c index ff8ee06491c3..75fac