Skip to content

Commit

Permalink
[ALSA] pcm_oss: fix snd_pcm_oss_release() oops
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
OGAWA Hirofumi authored and Jaroslav Kysela committed Apr 12, 2006
1 parent a145410 commit bbdc1b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/core/oss/pcm_oss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit bbdc1b7

Please sign in to comment.