提交 d05468b7 编写于 作者: T Takashi Iwai

ALSA: pcm - Remove BKL from async callback

It's simply calling fasync_helper().
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 68c7ccb8
无相关合并请求
...@@ -3303,18 +3303,13 @@ static int snd_pcm_fasync(int fd, struct file * file, int on) ...@@ -3303,18 +3303,13 @@ static int snd_pcm_fasync(int fd, struct file * file, int on)
struct snd_pcm_file * pcm_file; struct snd_pcm_file * pcm_file;
struct snd_pcm_substream *substream; struct snd_pcm_substream *substream;
struct snd_pcm_runtime *runtime; struct snd_pcm_runtime *runtime;
int err = -ENXIO;
lock_kernel();
pcm_file = file->private_data; pcm_file = file->private_data;
substream = pcm_file->substream; substream = pcm_file->substream;
if (PCM_RUNTIME_CHECK(substream)) if (PCM_RUNTIME_CHECK(substream))
goto out; return -ENXIO;
runtime = substream->runtime; runtime = substream->runtime;
err = fasync_helper(fd, file, on, &runtime->fasync); return fasync_helper(fd, file, on, &runtime->fasync);
out:
unlock_kernel();
return err;
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部