diff options
Diffstat (limited to 'net/ipv4/devinet.c')
-rw-r--r-- | net/ipv4/devinet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c index 55d199e4ae21..3168c3de4919 100644 --- a/net/ipv4/devinet.c +++ b/net/ipv4/devinet.c | |||
@@ -516,8 +516,6 @@ static struct in_ifaddr *rtm_to_ifaddr(struct nlmsghdr *nlh) | |||
516 | goto errout; | 516 | goto errout; |
517 | } | 517 | } |
518 | 518 | ||
519 | ipv4_devconf_setall(in_dev); | ||
520 | |||
521 | ifa = inet_alloc_ifa(); | 519 | ifa = inet_alloc_ifa(); |
522 | if (ifa == NULL) { | 520 | if (ifa == NULL) { |
523 | /* | 521 | /* |
@@ -528,6 +526,7 @@ static struct in_ifaddr *rtm_to_ifaddr(struct nlmsghdr *nlh) | |||
528 | goto errout; | 526 | goto errout; |
529 | } | 527 | } |
530 | 528 | ||
529 | ipv4_devconf_setall(in_dev); | ||
531 | in_dev_hold(in_dev); | 530 | in_dev_hold(in_dev); |
532 | 531 | ||
533 | if (tb[IFA_ADDRESS] == NULL) | 532 | if (tb[IFA_ADDRESS] == NULL) |