Skip to content

Commit

Permalink
[ALSA] fix a wrong lock
Browse files Browse the repository at this point in the history
fix a typo in the info locking code

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
  • Loading branch information
Clemens Ladisch authored and Jaroslav Kysela committed Jun 22, 2006
1 parent 170a346 commit f4a747f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/core/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f4a747f

Please sign in to comment.