ipv6: fix the bug of address check
authorStephen Hemminger <shemminger@vyatta.com>
Tue, 18 May 2010 05:27:12 +0000 (22:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 May 2010 05:27:12 +0000 (22:27 -0700)
The duplicate address check code got broken in the conversion
to hlist (2.6.35).  The earlier patch did not fix the case where
two addresses match same hash value. Use two exit paths,
rather than depending on state of loop variables (from macro).

Based on earlier fix by Shan Wei.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Reviewed-by: Shan Wei <shanwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c

Simple merge