]> Git Repo - linux.git/commitdiff
[ALSA] pcm_oss: fix snd_pcm_oss_release() oops
authorOGAWA Hirofumi <[email protected]>
Thu, 6 Apr 2006 17:42:40 +0000 (19:42 +0200)
committerJaroslav Kysela <[email protected]>
Wed, 12 Apr 2006 09:34:01 +0000 (11:34 +0200)
Modules: ALSA<-OSS emulation

Fix Oops due to a typo in snd_pcm_oss.c.

Signed-off-by: OGAWA Hirofumi <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
sound/core/oss/pcm_oss.c

index 91114c7aeff5aa29c6c65375fda770f19425b381..7c0c4e1d694321637f90d2fced48c89150e948b2 100644 (file)
@@ -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;
        }
This page took 0.059873 seconds and 4 git commands to generate.