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)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 19 Sep 2017 01:34:05 +0000 (02:34 +0100)
commit9f81248d78f0453597ce8081e56fc4dff60b80d9
tree3e3a2e769e67aefc376819706599351ebc2ebe35
parent333c7251a97390783a3e3ecfa242554a456cc4dd
ipv6: Check ip6_find_1stfragopt() return value properly.

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

Fixes: 2423496af35d ("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>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name ipv6-check-ip6_find_1stfragopt-return-value-properly.patch
net/ipv6/ip6_offload.c
net/ipv6/ip6_output.c
net/ipv6/udp_offload.c