Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377137
b: refs/heads/master
c: aaf9522
h: refs/heads/master
i:
  377135: 90a15d0
v: v3
  • Loading branch information
Benjamin Poirier authored and David S. Miller committed Jun 14, 2013
1 parent e628c6b commit 2476e38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c9bfbb31af7c8428267b34eb9706a621ac219a28
refs/heads/master: aaf9522d62d18626a60f7f2080671d853d9e8681
6 changes: 5 additions & 1 deletion trunk/drivers/s390/net/netiucv.c
Original file line number Diff line number Diff line change
Expand Up @@ -2040,6 +2040,7 @@ static struct net_device *netiucv_init_netdevice(char *username, char *userdata)
netiucv_setup_netdevice);
if (!dev)
return NULL;
rtnl_lock();
if (dev_alloc_name(dev, dev->name) < 0)
goto out_netdev;

Expand All @@ -2061,6 +2062,7 @@ static struct net_device *netiucv_init_netdevice(char *username, char *userdata)
out_fsm:
kfree_fsm(privptr->fsm);
out_netdev:
rtnl_unlock();
free_netdev(dev);
return NULL;
}
Expand Down Expand Up @@ -2100,6 +2102,7 @@ static ssize_t conn_write(struct device_driver *drv,

rc = netiucv_register_device(dev);
if (rc) {
rtnl_unlock();
IUCV_DBF_TEXT_(setup, 2,
"ret %d from netiucv_register_device\n", rc);
goto out_free_ndev;
Expand All @@ -2109,7 +2112,8 @@ static ssize_t conn_write(struct device_driver *drv,
priv = netdev_priv(dev);
SET_NETDEV_DEV(dev, priv->dev);

rc = register_netdev(dev);
rc = register_netdevice(dev);
rtnl_unlock();
if (rc)
goto out_unreg;

Expand Down

0 comments on commit 2476e38

Please sign in to comment.