Files
linux/net
YueHaibing 1552557b30 xfrm6_tunnel: Fix spi check in __xfrm6_tunnel_alloc_spi
[ Upstream commit fa89a4593b ]

gcc warn this:

net/ipv6/xfrm6_tunnel.c:143 __xfrm6_tunnel_alloc_spi() warn:
 always true condition '(spi <= 4294967295) => (0-u32max <= u32max)'

'spi' is u32, which always not greater than XFRM6_TUNNEL_SPI_MAX
because of wrap around. So the second forloop will never reach.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-02-12 19:47:13 +01:00
..
2019-01-13 09:51:08 +01:00
2018-11-04 14:50:51 +01:00
2019-01-31 08:14:31 +01:00
2018-08-27 15:24:33 -07:00
2018-12-01 09:37:27 +01:00
2018-09-24 12:19:27 -07:00
2019-02-06 17:30:07 +01:00
2018-11-04 14:50:51 +01:00
2019-01-13 09:51:00 +01:00
2018-07-24 14:10:42 -07:00
2018-07-24 14:10:42 -07:00
2019-01-09 17:38:33 +01:00
2018-07-24 14:10:43 -07:00
2018-10-18 16:43:06 -07:00