aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/rawmidi.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/core/rawmidi.c')
-rw-r--r--sound/core/rawmidi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/core/rawmidi.c b/sound/core/rawmidi.c
index 8a2bdfae63e3..269c467ca9bb 100644
--- a/sound/core/rawmidi.c
+++ b/sound/core/rawmidi.c
@@ -430,7 +430,8 @@ static int snd_rawmidi_open(struct inode *inode, struct file *file)
430 kctl = snd_ctl_file(list); 430 kctl = snd_ctl_file(list);
431 if (kctl->pid == current->pid) { 431 if (kctl->pid == current->pid) {
432 subdevice = kctl->prefer_rawmidi_subdevice; 432 subdevice = kctl->prefer_rawmidi_subdevice;
433 break; 433 if (subdevice != -1)
434 break;
434 } 435 }
435 } 436 }
436 up_read(&card->controls_rwsem); 437 up_read(&card->controls_rwsem);