ALSA: mtpav - Fix race in probe
authorTakashi Iwai <tiwai@suse.de>
Wed, 8 Oct 2008 08:28:25 +0000 (10:28 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 10 Oct 2008 11:41:58 +0000 (13:41 +0200)
Ingo reported Oops at probing mtpav driver.  It's a race between
the irq handler and the rawmidi instance registration.

This patch fixes the order of registration to avoid the race.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Tested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>

No differences found