mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
c11372da33
commit
01205a0e60
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue