Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193197
b: refs/heads/master
c: d05468b
h: refs/heads/master
i:
  193195: b7bee76
v: v3
  • Loading branch information
Takashi Iwai committed Apr 7, 2010
1 parent 96322eb commit 620a486
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 68c7ccb8f85801655aa681391dc0ee037a2b66d4
refs/heads/master: d05468b72a32ec45aefb48caa00bd99350b9cf86
9 changes: 2 additions & 7 deletions trunk/sound/core/pcm_native.c
Original file line number Diff line number Diff line change
Expand Up @@ -3303,18 +3303,13 @@ static int snd_pcm_fasync(int fd, struct file * file, int on)
struct snd_pcm_file * pcm_file;
struct snd_pcm_substream *substream;
struct snd_pcm_runtime *runtime;
int err = -ENXIO;

lock_kernel();
pcm_file = file->private_data;
substream = pcm_file->substream;
if (PCM_RUNTIME_CHECK(substream))
goto out;
return -ENXIO;
runtime = substream->runtime;
err = fasync_helper(fd, file, on, &runtime->fasync);
out:
unlock_kernel();
return err;
return fasync_helper(fd, file, on, &runtime->fasync);
}

/*
Expand Down

0 comments on commit 620a486

Please sign in to comment.