From: Clemens Ladisch Date: Tue, 2 May 2006 13:33:25 +0000 (+0200) Subject: [ALSA] fix a wrong lock X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f4a747f155fe375231196ec3d26fcb6e3675d82f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [ALSA] fix a wrong lock fix a typo in the info locking code Signed-off-by: Clemens Ladisch --- 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 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);