Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185341
b: refs/heads/master
c: 063e20e
h: refs/heads/master
i:
  185339: c7dce58
v: v3
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent 9c43f70 commit c61df5b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 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: 554f76962d3a6eb5110415f1591aca83f96a84ae
refs/heads/master: 063e20eb980f281d8456c3b48f146107f5cb2338
4 changes: 0 additions & 4 deletions trunk/drivers/usb/core/devio.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,8 +653,6 @@ static int usbdev_open(struct inode *inode, struct file *file)
const struct cred *cred = current_cred();
int ret;

lock_kernel();

ret = -ENOMEM;
ps = kmalloc(sizeof(struct dev_state), GFP_KERNEL);
if (!ps)
Expand Down Expand Up @@ -713,15 +711,13 @@ static int usbdev_open(struct inode *inode, struct file *file)
usb_unlock_device(dev);
snoop(&dev->dev, "opened by process %d: %s\n", task_pid_nr(current),
current->comm);
unlock_kernel();
return ret;

out_unlock_device:
usb_unlock_device(dev);
usb_put_dev(dev);
out_free_ps:
kfree(ps);
unlock_kernel();
return ret;
}

Expand Down

0 comments on commit c61df5b

Please sign in to comment.