]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite751915fabe75c4152a5f739351e8535bfaf0631
tree121f5ed0870a14d298989bc35c0ddcf03591ff3d
parent4dca93b2d94cfb5d9a999b1c27942f2bf961e62c
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