Home
last modified time | relevance | path

Searched hist:"58075 ff523af85002bfeace07304d57c59251605" (Results 1 – 1 of 1) sorted by relevance

/linux/net/ipv4/
H A Dfib_rules.cdiff 58075ff523af85002bfeace07304d57c59251605 Sat Dec 29 07:45:23 CET 2018 YueHaibing <yuehaibing@huawei.com> ipv4: fib_rules: Fix possible infinite loop in fib_empty_table

gcc warn this:
net/ipv4/fib_rules.c:203 fib_empty_table() warn:
always true condition '(id <= 4294967295) => (0-u32max <= u32max)'

'id' is u32, which always not greater than RT_TABLE_MAX
(0xFFFFFFFF), So add a check to break while wrap around.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>