aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/core/pcm_native.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
index 87288762403..cadba308776 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
@@ -3303,18 +3303,13 @@ static int snd_pcm_fasync(int fd, struct file * file, int on)
3303 struct snd_pcm_file * pcm_file; 3303 struct snd_pcm_file * pcm_file;
3304 struct snd_pcm_substream *substream; 3304 struct snd_pcm_substream *substream;
3305 struct snd_pcm_runtime *runtime; 3305 struct snd_pcm_runtime *runtime;
3306 int err = -ENXIO;
3307 3306
3308 lock_kernel();
3309 pcm_file = file->private_data; 3307 pcm_file = file->private_data;
3310 substream = pcm_file->substream; 3308 substream = pcm_file->substream;
3311 if (PCM_RUNTIME_CHECK(substream)) 3309 if (PCM_RUNTIME_CHECK(substream))
3312 goto out; 3310 return -ENXIO;
3313 runtime = substream->runtime; 3311 runtime = substream->runtime;
3314 err = fasync_helper(fd, file, on, &runtime->fasync); 3312 return fasync_helper(fd, file, on, &runtime->fasync);
3315out:
3316 unlock_kernel();
3317 return err;
3318} 3313}
3319 3314
3320/* 3315/*