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)
commit32fe61426373d85e797bf4f4dcbe4510487c3e00
tree121f5ed0870a14d298989bc35c0ddcf03591ff3d
parent59b3db6c69ae9eeed1d8fc3aee6b88272ba38ba8
ALSA: mtpav - Fix race in probe

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>
sound/drivers/mtpav.c