aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/pcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/core/pcm.c')
-rw-r--r--sound/core/pcm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/core/pcm.c b/sound/core/pcm.c
index 9070f277f8db..09ee8c6b9f75 100644
--- a/sound/core/pcm.c
+++ b/sound/core/pcm.c
@@ -153,7 +153,9 @@ static int snd_pcm_control_ioctl(struct snd_card *card,
153 err = -ENXIO; 153 err = -ENXIO;
154 goto _error; 154 goto _error;
155 } 155 }
156 mutex_lock(&pcm->open_mutex);
156 err = snd_pcm_info_user(substream, info); 157 err = snd_pcm_info_user(substream, info);
158 mutex_unlock(&pcm->open_mutex);
157 _error: 159 _error:
158 mutex_unlock(&register_mutex); 160 mutex_unlock(&register_mutex);
159 return err; 161 return err;