projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
554f769
)
USB: Remove BKL from usbdev_open()
author
Oliver Neukum
<
[email protected]
>
Wed, 13 Jan 2010 14:31:48 +0000
(15:31 +0100)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 2 Mar 2010 22:54:22 +0000
(14:54 -0800)
Locking had long been changed making BKL redundant.
Simply remove it.
Signed-off-by: Oliver Neukum <
[email protected]
>
Cc: Alan Stern <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/core/devio.c
patch
|
blob
|
history
diff --git
a/drivers/usb/core/devio.c
b/drivers/usb/core/devio.c
index 825e0abfed0acdc74553ef58995b4be4a3196608..6e731507c0c4d2532c06472ded441a40e85963e0 100644
(file)
--- a/
drivers/usb/core/devio.c
+++ b/
drivers/usb/core/devio.c
@@
-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)
@@
-713,7
+711,6
@@
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:
@@
-721,7
+718,6
@@
static int usbdev_open(struct inode *inode, struct file *file)
usb_put_dev(dev);
out_free_ps:
kfree(ps);
- unlock_kernel();
return ret;
}