]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Check ip6_find_1stfragopt() return value properly.
authorDavid S. Miller <davem@davemloft.net>
Thu, 18 May 2017 02:54:11 +0000 (22:54 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 May 2017 02:54:11 +0000 (22:54 -0400)
commit5f729ecafa424b54b0fa10618577a60f34b793a8
tree069fed66bdc18c6043c981748bb28057fbc1bcf2
parent30eee91d2f40fd7d6cb9a92e95843461baad9d53
ipv6: Check ip6_find_1stfragopt() return value properly.

Do not use unsigned variables to see if it returns a negative
error or not.

Fixes: f131fb620cdb ("ipv6: Prevent overrun when parsing v6 header options")
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_offload.c
net/ipv6/ip6_output.c
net/ipv6/udp_offload.c