]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit68bb540852d003eef5096db9f517e9b94d7d3e9b
treefe8a31b4ca2e36de74ce8c6b4ee66ac66deac6da
parent9552ca268ee1b5a495fc91c30b2c5901eb1cf8f7
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