Commit f4a747f1 authored by Clemens Ladisch's avatar Clemens Ladisch Committed by Jaroslav Kysela
Browse files

[ALSA] fix a wrong lock



fix a typo in the info locking code

Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
parent 170a3460
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);