diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2006-04-06 13:42:40 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-04-12 05:34:01 -0400 |
commit | bbdc1b7dbe41578da7c9a6266cf450abe97e4ca7 (patch) | |
tree | e74c98ef9a61bd0a270867734d73be316b18705e | |
parent | a145410dccdb44f81d3b56763ef9b6f721f4e47c (diff) |
[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>
-rw-r--r-- | sound/core/oss/pcm_oss.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
1760 | snd_pcm_oss_init_substream(substream, &setup[idx], minor); | 1760 | snd_pcm_oss_init_substream(substream, &setup[idx], minor); |
1761 | } | 1761 | } |
1762 | 1762 | ||
1763 | if (! pcm_oss_file->streams[0] && pcm_oss_file->streams[1]) { | 1763 | if (!pcm_oss_file->streams[0] && !pcm_oss_file->streams[1]) { |
1764 | snd_pcm_oss_release_file(pcm_oss_file); | 1764 | snd_pcm_oss_release_file(pcm_oss_file); |
1765 | return -EINVAL; | 1765 | return -EINVAL; |
1766 | } | 1766 | } |