Locking had long been changed making BKL redundant.
Simply remove it.
Signed-off-by: Oliver Neukum <oliver@neukum.org>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
const struct cred *cred = current_cred();
int ret;
- lock_kernel();
-
ret = -ENOMEM;
ps = kmalloc(sizeof(struct dev_state), GFP_KERNEL);
if (!ps)
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_put_dev(dev);
out_free_ps:
kfree(ps);
- unlock_kernel();
return ret;
}