Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310743
b: refs/heads/master
c: a06998b
h: refs/heads/master
i:
  310741: 2bff4ff
  310739: 1435183
  310735: 93f4f42
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jun 7, 2012
1 parent 1a5b35a commit 96447ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: da2e852612967a53d17de930929574444a67fb52
refs/heads/master: a06998b88b1651c5f71c0e35f528bf2057188ead
2 changes: 2 additions & 0 deletions trunk/net/l2tp/l2tp_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ static void l2tp_eth_delete(struct l2tp_session *session)
if (dev) {
unregister_netdev(dev);
spriv->dev = NULL;
module_put(THIS_MODULE);
}
}
}
Expand Down Expand Up @@ -249,6 +250,7 @@ static int l2tp_eth_create(struct net *net, u32 tunnel_id, u32 session_id, u32 p
if (rc < 0)
goto out_del_dev;

__module_get(THIS_MODULE);
/* Must be done after register_netdev() */
strlcpy(session->ifname, dev->name, IFNAMSIZ);

Expand Down

0 comments on commit 96447ed

Please sign in to comment.