Browse Source

[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 <hirofumi@mail.parknet.co.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
OGAWA Hirofumi 19 years ago
parent
commit
bbdc1b7dbe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sound/core/oss/pcm_oss.c

+ 1 - 1
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);
 		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);
 		snd_pcm_oss_release_file(pcm_oss_file);
 		return -EINVAL;
 		return -EINVAL;
 	}
 	}