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)
commiteedf042a63ffef050ebc015de19b52dc065e830b
treefe8a31b4ca2e36de74ce8c6b4ee66ac66deac6da
parent820ae8a80eb59962aefbbd4908dfe144ec0f9edb
ipv6: fix the bug of address check

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