aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/rawmidi.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-11-10 16:30:03 +0100
committerTakashi Iwai <tiwai@suse.de>2009-11-10 16:30:03 +0100
commit3f225c07c7d0559f65b41250edd01a577fdba426 (patch)
tree753a9b9a9063e23d44986d974aeb2bc1986d7df8 /sound/core/rawmidi.c
parentsound: rawmidi: fix MIDI device O_APPEND error handling (diff)
parentcontrol: use reference-counted pid (diff)
downloadlinux-dev-3f225c07c7d0559f65b41250edd01a577fdba426.tar.xz
linux-dev-3f225c07c7d0559f65b41250edd01a577fdba426.zip
Merge branch 'topic/ctl-pid-lock' into topic/core-change
Diffstat (limited to 'sound/core/rawmidi.c')
-rw-r--r--sound/core/rawmidi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/rawmidi.c b/sound/core/rawmidi.c
index 70d6f25ba526..4e26563431c8 100644
--- a/sound/core/rawmidi.c
+++ b/sound/core/rawmidi.c
@@ -413,7 +413,7 @@ static int snd_rawmidi_open(struct inode *inode, struct file *file)
subdevice = -1;
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)) {
subdevice = kctl->prefer_rawmidi_subdevice;
if (subdevice != -1)
break;