Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36399
b: refs/heads/master
c: ba307f5
h: refs/heads/master
i:
  36397: 75f0006
  36395: 420ce76
  36391: 3a6a687
  36383: d457c67
v: v3
  • Loading branch information
Milan Svoboda authored and Greg Kroah-Hartman committed Sep 27, 2006
1 parent b7b9a17 commit 6809700
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 8a7471aba19dc526978a03bfe2e3c122712b5900
refs/heads/master: ba307f5828b1b4a1348d99c4f430a0cf3beeae2f
5 changes: 5 additions & 0 deletions trunk/drivers/usb/gadget/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,10 @@ static int
ep_release (struct inode *inode, struct file *fd)
{
struct ep_data *data = fd->private_data;
int value;

if ((value = down_interruptible(&data->lock)) < 0)
return value;

/* clean up if this can be reopened */
if (data->state != STATE_EP_UNBOUND) {
Expand All @@ -485,6 +489,7 @@ ep_release (struct inode *inode, struct file *fd)
data->hs_desc.bDescriptorType = 0;
usb_ep_disable(data->ep);
}
up (&data->lock);
put_ep (data);
return 0;
}
Expand Down

0 comments on commit 6809700

Please sign in to comment.