]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV4]: Swap the ifa allocation with the"ipv4_devconf_setall" call
authorPavel Emelyanov <xemul@openvz.org>
Sat, 8 Dec 2007 07:55:43 +0000 (23:55 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 11 Dec 2007 10:45:25 +0000 (02:45 -0800)
commit476736a68537427460b492614df37d1e44112bb3
tree8f6e438dfb7e869387538bd4205c01ba05f665f1
parentbdd63455cc1dfc33f598cfd6249d1902e940ab4d
[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>
net/ipv4/devinet.c