aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/core/info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/core/info.c b/sound/core/info.c
index d749a0d394a7..fe836618fa25 100644
--- a/sound/core/info.c
+++ b/sound/core/info.c
@@ -167,7 +167,7 @@ static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig)
167 167
168 data = file->private_data; 168 data = file->private_data;
169 entry = data->entry; 169 entry = data->entry;
170 lock_kernel(); 170 mutex_lock(&entry->access);
171 switch (entry->content) { 171 switch (entry->content) {
172 case SNDRV_INFO_CONTENT_TEXT: 172 case SNDRV_INFO_CONTENT_TEXT:
173 switch (orig) { 173 switch (orig) {
@@ -196,7 +196,7 @@ static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig)
196 } 196 }
197 ret = -ENXIO; 197 ret = -ENXIO;
198out: 198out:
199 unlock_kernel(); 199 mutex_unlock(&entry->access);
200 return ret; 200 return ret;
201} 201}
202 202