[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>
This commit is contained in:
Domen Puncer 2005-06-05 14:46:16 +02:00 committed by Greg Kroah-Hartman
parent c11372da33
commit 01205a0e60

View file

@ -753,6 +753,7 @@ static ssize_t usblp_read(struct file *file, char __user *buffer, size_t count,
schedule(); schedule();
} else { } else {
set_current_state(TASK_RUNNING); set_current_state(TASK_RUNNING);
down(&usblp->sem);
break; break;
} }
down (&usblp->sem); down (&usblp->sem);