Skip to content

Commit

Permalink
[PATCH] USB: usblp: 2x up() in usblp_read
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Domen Puncer authored and Greg Kroah-Hartman committed Jun 27, 2005
1 parent c11372d commit 01205a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/class/usblp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 01205a0

Please sign in to comment.