Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100319
b: refs/heads/master
c: b5b4aa6
h: refs/heads/master
i:
  100317: 7613ae4
  100315: d8a3059
  100311: 50cac07
  100303: 86a848d
  100287: 4c3e5c4
v: v3
  • Loading branch information
Jonathan Corbet committed Jun 20, 2008
1 parent 13dcec9 commit ecf9cbe
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: 1af46fd72d6c18c1d96ce7f3491b841055e9dcfd
refs/heads/master: b5b4aa67da65aeb58718e0a39158b293873ac572
2 changes: 2 additions & 0 deletions trunk/drivers/usb/core/devio.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ static int usbdev_open(struct inode *inode, struct file *file)
struct dev_state *ps;
int ret;

lock_kernel();
/* Protect against simultaneous removal or release */
mutex_lock(&usbfs_mutex);

Expand Down Expand Up @@ -611,6 +612,7 @@ static int usbdev_open(struct inode *inode, struct file *file)
if (ret)
kfree(ps);
mutex_unlock(&usbfs_mutex);
unlock_kernel();
return ret;
}

Expand Down

0 comments on commit ecf9cbe

Please sign in to comment.