Merge branch 'stable-3.2' into pandora-3.2
[pandora-kernel.git] / sound / core / pcm.c
index 13eaeb3..00905d1 100644 (file)
@@ -145,7 +145,9 @@ static int snd_pcm_control_ioctl(struct snd_card *card,
                                err = -ENXIO;
                                goto _error;
                        }
+                       mutex_lock(&pcm->open_mutex);
                        err = snd_pcm_info_user(substream, info);
+                       mutex_unlock(&pcm->open_mutex);
                _error:
                        mutex_unlock(&register_mutex);
                        return err;