]> err.no Git - linux-2.6/blobdiff - sound/core/info.c
[ALSA] fix a wrong lock
[linux-2.6] / sound / core / info.c
index 4188f76add75562d22bfe3a579c433eee76482ad..c8eeaea9d695e983c81861cb30a862a0ded54fbe 100644 (file)
@@ -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);