|
@@ -578,6 +578,8 @@ ipv6_add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int pfxlen,
|
|
ifa->flags = flags | IFA_F_TENTATIVE;
|
|
ifa->flags = flags | IFA_F_TENTATIVE;
|
|
ifa->cstamp = ifa->tstamp = jiffies;
|
|
ifa->cstamp = ifa->tstamp = jiffies;
|
|
|
|
|
|
|
|
+ ifa->rt = rt;
|
|
|
|
+
|
|
ifa->idev = idev;
|
|
ifa->idev = idev;
|
|
in6_dev_hold(idev);
|
|
in6_dev_hold(idev);
|
|
/* For caller */
|
|
/* For caller */
|
|
@@ -603,8 +605,6 @@ ipv6_add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int pfxlen,
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
- ifa->rt = rt;
|
|
|
|
-
|
|
|
|
in6_ifa_hold(ifa);
|
|
in6_ifa_hold(ifa);
|
|
write_unlock(&idev->lock);
|
|
write_unlock(&idev->lock);
|
|
out2:
|
|
out2:
|