summaryrefslogtreecommitdiff
path: root/net/core/rtnetlink.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-03-20 16:18:00 -0700
committerDavid S. Miller <davem@davemloft.net>2010-03-20 16:18:00 -0700
commit3e81c6da39a265e11ef48f52bd15bf7ca0068c75 (patch)
tree880e2887173a0ec9c744bf1848b4e28da3c23558 /net/core/rtnetlink.c
parentb2db756449f63f98049587f7ede4a8e85e0c79b1 (diff)
downloadlinux-3.10-3e81c6da39a265e11ef48f52bd15bf7ca0068c75.tar.gz
linux-3.10-3e81c6da39a265e11ef48f52bd15bf7ca0068c75.tar.bz2
linux-3.10-3e81c6da39a265e11ef48f52bd15bf7ca0068c75.zip
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 'net/core/rtnetlink.c')
0 files changed, 0 insertions, 0 deletions