netiucv: reinsert dev_alloc_name for device naming
Invocation of dev_alloc_name() is re-inserted, because the created net_device name is used to create the device name for the iucv bus. This device is created before the register_netdev call. Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
7c01a8e56b
Коммит
1d503563f7
|
@ -1994,6 +1994,8 @@ static struct net_device *netiucv_init_netdevice(char *username)
|
|||
netiucv_setup_netdevice);
|
||||
if (!dev)
|
||||
return NULL;
|
||||
if (dev_alloc_name(dev, dev->name) < 0)
|
||||
goto out_netdev;
|
||||
|
||||
privptr = netdev_priv(dev);
|
||||
privptr->fsm = init_fsm("netiucvdev", dev_state_names,
|
||||
|
|
Загрузка…
Ссылка в новой задаче