Merge branch 'topic/ctl-pid-lock' into topic/core-change

This commit is contained in:
Takashi Iwai
2009-11-10 16:30:03 +01:00
4 changed files with 8 additions and 8 deletions

View File

@ -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;