aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/core/info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/info.c b/sound/core/info.c
index 4188f76add75..c8eeaea9d695 100644
--- a/sound/core/info.c
+++ b/sound/core/info.c
@@ -267,7 +267,7 @@ static ssize_t snd_info_entry_write(struct file *file, const char __user *buffer
267 buf = data->wbuffer; 267 buf = data->wbuffer;
268 if (buf == NULL) 268 if (buf == NULL)
269 return -EIO; 269 return -EIO;
270 mutex_unlock(&entry->access); 270 mutex_lock(&entry->access);
271 if (pos + count >= buf->len) { 271 if (pos + count >= buf->len) {
272 if (resize_info_buffer(buf, pos + count)) { 272 if (resize_info_buffer(buf, pos + count)) {
273 mutex_unlock(&entry->access); 273 mutex_unlock(&entry->access);