Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64253
b: refs/heads/master
c: d4c63b7
h: refs/heads/master
i:
  64251: a26ad43
v: v3
  • Loading branch information
Paul Fulghum authored and Linus Torvalds committed Aug 23, 2007
1 parent 70b9c77 commit 15d7cad
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 1807a1aaf5f2a35ea6d4b527b28bc8889d255a2f
refs/heads/master: d4c63b7c74507c424afcc9c80ba77a55bfb0d07e
4 changes: 4 additions & 0 deletions trunk/drivers/char/synclink_gt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1565,6 +1565,9 @@ static int hdlcdev_open(struct net_device *dev)
int rc;
unsigned long flags;

if (!try_module_get(THIS_MODULE))
return -EBUSY;

DBGINFO(("%s hdlcdev_open\n", dev->name));

/* generic HDLC layer open processing */
Expand Down Expand Up @@ -1634,6 +1637,7 @@ static int hdlcdev_close(struct net_device *dev)
info->netcount=0;
spin_unlock_irqrestore(&info->netlock, flags);

module_put(THIS_MODULE);
return 0;
}

Expand Down

0 comments on commit 15d7cad

Please sign in to comment.