diff options
author | David S. Miller <davem@davemloft.net> | 2010-03-20 19:18:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-20 19:18:00 -0400 |
commit | 3e81c6da39a265e11ef48f52bd15bf7ca0068c75 (patch) | |
tree | 880e2887173a0ec9c744bf1848b4e28da3c23558 /include/linux/notifier.h | |
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>
Diffstat (limited to 'include/linux/notifier.h')
0 files changed, 0 insertions, 0 deletions