[IPV4]: Swap the ifa allocation with the"ipv4_devconf_setall" call

According to Herbert, the ipv4_devconf_setall should be called
only when the ifa is added to the device. However, failed
ifa allocation may bring things into inconsistent state.

Move the call to ipv4_devconf_setall after the ifa allocation.

Fits both net-2.6 (with offsets) and net-2.6.25 (cleanly).

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Pavel Emelyanov and committed by David S. Miller a4e65d36 1df2e445

+1 -2
+1 -2
net/ipv4/devinet.c
··· 516 516 goto errout; 517 517 } 518 518 519 - ipv4_devconf_setall(in_dev); 520 - 521 519 ifa = inet_alloc_ifa(); 522 520 if (ifa == NULL) { 523 521 /* ··· 526 528 goto errout; 527 529 } 528 530 531 + ipv4_devconf_setall(in_dev); 529 532 in_dev_hold(in_dev); 530 533 531 534 if (tb[IFA_ADDRESS] == NULL)