提交 bbdc1b7d 编写于 作者: O OGAWA Hirofumi 提交者: Jaroslav Kysela

[ALSA] pcm_oss: fix snd_pcm_oss_release() oops

Modules: ALSA<-OSS emulation

Fix Oops due to a typo in snd_pcm_oss.c.
Signed-off-by: NOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 a145410d
......@@ -1760,7 +1760,7 @@ static int snd_pcm_oss_open_file(struct file *file,
snd_pcm_oss_init_substream(substream, &setup[idx], minor);
}
if (! pcm_oss_file->streams[0] && pcm_oss_file->streams[1]) {
if (!pcm_oss_file->streams[0] && !pcm_oss_file->streams[1]) {
snd_pcm_oss_release_file(pcm_oss_file);
return -EINVAL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册