Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275807
b: refs/heads/master
c: 001428e
h: refs/heads/master
i:
  275805: e62a17c
  275803: 86a10d0
  275799: 1fafbab
  275791: 9e1bf0d
  275775: 6bf2755
v: v3
  • Loading branch information
Marc Kleine-Budde authored and Greg Kroah-Hartman committed Nov 14, 2011
1 parent b03b383 commit 5667a06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 74203de067ae5c71526168b597088022836e31d3
refs/heads/master: 001428e4871d6c62f5e16c62df681624d8b480c1
5 changes: 3 additions & 2 deletions trunk/drivers/usb/gadget/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1730,8 +1730,9 @@ static void
gadgetfs_disconnect (struct usb_gadget *gadget)
{
struct dev_data *dev = get_gadget_data (gadget);
unsigned long flags;

spin_lock (&dev->lock);
spin_lock_irqsave (&dev->lock, flags);
if (dev->state == STATE_DEV_UNCONNECTED)
goto exit;
dev->state = STATE_DEV_UNCONNECTED;
Expand All @@ -1740,7 +1741,7 @@ gadgetfs_disconnect (struct usb_gadget *gadget)
next_event (dev, GADGETFS_DISCONNECT);
ep0_readable (dev);
exit:
spin_unlock (&dev->lock);
spin_unlock_irqrestore (&dev->lock, flags);
}

static void
Expand Down

0 comments on commit 5667a06

Please sign in to comment.