[ALSA] fix a wrong lock
fix a typo in the info locking code Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
This commit is contained in:
parent
170a34605c
commit
f4a747f155
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,7 @@ static ssize_t snd_info_entry_write(struct file *file, const char __user *buffer
|
||||||
buf = data->wbuffer;
|
buf = data->wbuffer;
|
||||||
if (buf == NULL)
|
if (buf == NULL)
|
||||||
return -EIO;
|
return -EIO;
|
||||||
mutex_unlock(&entry->access);
|
mutex_lock(&entry->access);
|
||||||
if (pos + count >= buf->len) {
|
if (pos + count >= buf->len) {
|
||||||
if (resize_info_buffer(buf, pos + count)) {
|
if (resize_info_buffer(buf, pos + count)) {
|
||||||
mutex_unlock(&entry->access);
|
mutex_unlock(&entry->access);
|
||||||
|
|
Loading…
Add table
Reference in a new issue