Fix "(unregistered net_device): Features changed" message
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Tue, 22 Feb 2011 16:52:28 +0000 (16:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Feb 2011 22:23:31 +0000 (14:23 -0800)
commit8e9b59b219e520cfc2f80af471c6b0e67ad9dd75
tree93ff1838aa4f7c04b0ec58e7a61a7da50d66946b
parenta9a6fb374547044088ca37a30d4c3ca581cec80d
Fix "(unregistered net_device): Features changed" message

Fix netdev_update_features() messages on register time by moving
the call further in register_netdevice(). When
netdev->reg_state != NETREG_REGISTERED, netdev_name() returns
"(unregistered netdevice)" even if the dev's name is already filled.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c