From: OGAWA Hirofumi Date: Thu, 6 Apr 2006 17:42:40 +0000 (+0200) Subject: [ALSA] pcm_oss: fix snd_pcm_oss_release() oops X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bbdc1b7dbe41578da7c9a6266cf450abe97e4ca7;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [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: OGAWA Hirofumi Signed-off-by: Takashi Iwai --- diff --git a/sound/core/oss/pcm_oss.c b/sound/core/oss/pcm_oss.c index 91114c7aeff5..7c0c4e1d6943 100644 --- a/sound/core/oss/pcm_oss.c +++ b/sound/core/oss/pcm_oss.c @@ -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; }