diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-11-10 16:30:03 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-11-10 16:30:03 +0100 |
commit | 3f225c07c7d0559f65b41250edd01a577fdba426 (patch) | |
tree | 753a9b9a9063e23d44986d974aeb2bc1986d7df8 /sound/core/pcm.c | |
parent | b7fe750fcceda4fa6bef399b0e2812562728ea82 (diff) | |
parent | 25d27eded1f4fc728e64f443adc339b5229be5d7 (diff) |
Merge branch 'topic/ctl-pid-lock' into topic/core-change
Diffstat (limited to 'sound/core/pcm.c')
-rw-r--r-- | sound/core/pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/pcm.c b/sound/core/pcm.c index c69c60b2a48..8e2c7833614 100644 --- a/sound/core/pcm.c +++ b/sound/core/pcm.c @@ -809,7 +809,7 @@ int snd_pcm_attach_substream(struct snd_pcm *pcm, int stream, card = pcm->card; read_lock(&card->ctl_files_rwlock); list_for_each_entry(kctl, &card->ctl_files, list) { - if (kctl->pid == current->pid) { + if (kctl->pid == task_pid(current)) { prefer_subdevice = kctl->prefer_pcm_subdevice; if (prefer_subdevice != -1) break; |