diff options
| author | YueHaibing <[email protected]> | 2018-12-19 06:45:09 +0000 |
|---|---|---|
| committer | Steffen Klassert <[email protected]> | 2018-12-19 11:33:17 +0000 |
| commit | fa89a4593b927b3f59c3b69379f31d3b22272e4e (patch) | |
| tree | 7569a640cb733f84f1849f1793cac61a5ab183df /drivers/net/xen-netfront.c | |
| parent | xfrm: policy: remove set but not used variable 'priority' (diff) | |
| download | kernel-fa89a4593b927b3f59c3b69379f31d3b22272e4e.tar.gz kernel-fa89a4593b927b3f59c3b69379f31d3b22272e4e.zip | |
xfrm6_tunnel: Fix spi check in __xfrm6_tunnel_alloc_spi
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 <[email protected]>
Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'drivers/net/xen-netfront.c')
0 files changed, 0 insertions, 0 deletions
