commit | 3e81c6da39a265e11ef48f52bd15bf7ca0068c75 | [log] [tgz] |
---|---|---|
author | David S. Miller <davem@davemloft.net> | Sat Mar 20 16:18:00 2010 -0700 |
committer | David S. Miller <davem@davemloft.net> | Sat Mar 20 16:18:00 2010 -0700 |
tree | 880e2887173a0ec9c744bf1848b4e28da3c23558 | |
parent | b2db756449f63f98049587f7ede4a8e85e0c79b1 [diff] |
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>