Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100317
b: refs/heads/master
c: b2f2ba0
h: refs/heads/master
i:
  100315: d8a3059
v: v3
  • Loading branch information
Jonathan Corbet committed Jun 20, 2008
1 parent 456f4f5 commit 7613ae4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 26ce4f0684ef4b96d0244ac58b89ec282d5b980c
refs/heads/master: b2f2ba01b2a4356e92231669f7e3dcee37ac2fca
3 changes: 2 additions & 1 deletion trunk/drivers/usb/gadget/printer.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ printer_open(struct inode *inode, struct file *fd)
unsigned long flags;
int ret = -EBUSY;

lock_kernel();
dev = container_of(inode->i_cdev, struct printer_dev, printer_cdev);

spin_lock_irqsave(&dev->lock, flags);
Expand All @@ -477,7 +478,7 @@ printer_open(struct inode *inode, struct file *fd)
spin_unlock_irqrestore(&dev->lock, flags);

DBG(dev, "printer_open returned %x\n", ret);

unlock_kernel();
return ret;
}

Expand Down

0 comments on commit 7613ae4

Please sign in to comment.