diff options
author | Domen Puncer <domen@coderock.org> | 2005-06-05 14:46:16 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-27 14:44:02 -0700 |
commit | 01205a0e60bb5a66d768b881fb8355981b912510 (patch) | |
tree | 09a80a72be85b8e16523c37076b55b5c6a08c504 /drivers/usb/class/usblp.c | |
parent | c11372da33c9d38cb35867915f15c74778e1a3a4 (diff) | |
download | blackbird-op-linux-01205a0e60bb5a66d768b881fb8355981b912510.tar.gz blackbird-op-linux-01205a0e60bb5a66d768b881fb8355981b912510.zip |
[PATCH] USB: usblp: 2x up() in usblp_read
up(&usblp->sem) was called twice in a row in this code path.
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/class/usblp.c')
-rw-r--r-- | drivers/usb/class/usblp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/class/usblp.c b/drivers/usb/class/usblp.c index dff134185c18..7ce43fb8118a 100644 --- a/drivers/usb/class/usblp.c +++ b/drivers/usb/class/usblp.c @@ -753,6 +753,7 @@ static ssize_t usblp_read(struct file *file, char __user *buffer, size_t count, schedule(); } else { set_current_state(TASK_RUNNING); + down(&usblp->sem); break; } down (&usblp->sem); |