projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a145410
)
[ALSA] pcm_oss: fix snd_pcm_oss_release() oops
author
OGAWA Hirofumi
<hirofumi@mail.parknet.co.jp>
Thu, 6 Apr 2006 17:42:40 +0000
(19:42 +0200)
committer
Jaroslav Kysela
<perex@suse.cz>
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 <hirofumi@mail.parknet.co.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/oss/pcm_oss.c
patch
|
blob
|
history
diff --git
a/sound/core/oss/pcm_oss.c
b/sound/core/oss/pcm_oss.c
index
91114c7
..
7c0c4e1
100644
(file)
--- 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;
}