diff options
Diffstat (limited to 'sound/core/rawmidi.c')
-rw-r--r-- | sound/core/rawmidi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/rawmidi.c b/sound/core/rawmidi.c index c0adc14c91f..8a81bdafce6 100644 --- a/sound/core/rawmidi.c +++ b/sound/core/rawmidi.c | |||
@@ -415,7 +415,7 @@ static int snd_rawmidi_open(struct inode *inode, struct file *file) | |||
415 | subdevice = -1; | 415 | subdevice = -1; |
416 | read_lock(&card->ctl_files_rwlock); | 416 | read_lock(&card->ctl_files_rwlock); |
417 | list_for_each_entry(kctl, &card->ctl_files, list) { | 417 | list_for_each_entry(kctl, &card->ctl_files, list) { |
418 | if (kctl->pid == current->pid) { | 418 | if (kctl->pid == task_pid(current)) { |
419 | subdevice = kctl->prefer_rawmidi_subdevice; | 419 | subdevice = kctl->prefer_rawmidi_subdevice; |
420 | if (subdevice != -1) | 420 | if (subdevice != -1) |
421 | break; | 421 | break; |