提交 f4a747f1 编写于 作者: C Clemens Ladisch 提交者: Jaroslav Kysela

[ALSA] fix a wrong lock

fix a typo in the info locking code
Signed-off-by: NClemens Ladisch <clemens@ladisch.de>
上级 170a3460
......@@ -267,7 +267,7 @@ static ssize_t snd_info_entry_write(struct file *file, const char __user *buffer
buf = data->wbuffer;
if (buf == NULL)
return -EIO;
mutex_unlock(&entry->access);
mutex_lock(&entry->access);
if (pos + count >= buf->len) {
if (resize_info_buffer(buf, pos + count)) {
mutex_unlock(&entry->access);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册