]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: fix route error binding peer in func icmp6_dst_alloc
authorGao feng <omarapazanadi@gmail.com>
Fri, 28 Oct 2011 02:46:57 +0000 (02:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Oct 2011 20:36:07 +0000 (16:36 -0400)
commitdf07563f241df94b404f47c79b1091cf6feb819c
treec5e546044c5ff88b4abafc28df19e8b7ba951a7e
parentc134dec85478b535d6deb374ef0fb636f693f3c4
ipv6: fix route error binding peer in func icmp6_dst_alloc

in func icmp6_dst_alloc,dst_metric_set call ipv6_cow_metrics to set metric.
ipv6_cow_metrics may will call rt6_bind_peer to set rt6_info->rt6i_peer.
So,we should move ipv6_addr_copy before dst_metric_set to make sure rt6_bind_peer success.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c