Home
last modified time | relevance | path

Searched hist:"3 e81c6da39a265e11ef48f52bd15bf7ca0068c75" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/ipv6/
H A Daddrconf.cdiff 3e81c6da39a265e11ef48f52bd15bf7ca0068c75 Sat Mar 20 18:18:00 CDT 2010 David S. Miller <davem@davemloft.net> ipv6: Fix bug in ipv6_chk_same_addr().

hlist_for_each_entry(p...) will not necessarily initialize 'p'
to anything if the hlist is empty. GCC notices this and emits
a warning.

Just return true explicitly when we hit a match, and return
false is we fall out of the loop without one.

Signed-off-by: David S. Miller <davem@davemloft.net>