提交 01205a0e 编写于 作者: D Domen Puncer 提交者: Greg Kroah-Hartman

[PATCH] USB: usblp: 2x up() in usblp_read

up(&usblp->sem) was called twice in a row in this code path.
Signed-off-by: NDomen Puncer <domen@coderock.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 c11372da
...@@ -753,6 +753,7 @@ static ssize_t usblp_read(struct file *file, char __user *buffer, size_t count, ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部