From: Ursula Braun Date: Tue, 15 Nov 2011 02:31:14 +0000 (+0000) Subject: netiucv: reinsert dev_alloc_name for device naming X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1d503563f7601a249d015d3fad40b08e8d6a394b;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Frank Blaschka Signed-off-by: David S. Miller --- diff --git a/drivers/s390/net/netiucv.c b/drivers/s390/net/netiucv.c index 3251333a23d..b6a6356d09b 100644 --- a/drivers/s390/net/netiucv.c +++ b/drivers/s390/net/netiucv.c @@ -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,