From: David S. Miller Date: Sat, 20 Mar 2010 23:18:00 +0000 (-0700) Subject: ipv6: Fix bug in ipv6_chk_same_addr(). X-Git-Tag: v2.6.35-rc1~473^2~728 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e81c6da39a265e11ef48f52bd15bf7ca0068c75;p=pandora-kernel.git 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 --- Reading git-diff-tree failed