diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2006-05-02 09:33:25 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-06-22 15:33:16 -0400 |
commit | f4a747f155fe375231196ec3d26fcb6e3675d82f (patch) | |
tree | 1092a52d4df60019270408f01bcafe25870fa020 | |
parent | 170a34605c14a90df5f4a78e0b4ca643be6ef8ba (diff) |
[ALSA] fix a wrong lock
fix a typo in the info locking code
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
-rw-r--r-- | sound/core/info.c | 2 |
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); |