Merge branch 'topic/ctl-pid-lock' into topic/core-change
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user