[PATCH] Char: mxser_new, revert spin_lock changes
[powerpc.git] / sound / core / rawmidi.c
index 8a2bdfa..269c467 100644 (file)
@@ -430,7 +430,8 @@ static int snd_rawmidi_open(struct inode *inode, struct file *file)
                        kctl = snd_ctl_file(list);
                        if (kctl->pid == current->pid) {
                                subdevice = kctl->prefer_rawmidi_subdevice;
-                               break;
+                               if (subdevice != -1)
+                                       break;
                        }
                }
                up_read(&card->controls_rwsem);