ALSA: opti-miro: fix OOPS if hardware is not detected
authorKrzysztof Helt <krzysztof.h1@wp.pl>
Fri, 27 Nov 2009 10:20:56 +0000 (11:20 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 27 Nov 2009 10:21:40 +0000 (11:21 +0100)
commit8700055e0a30b3f67c1474b09200b59c32dd3796
treee33e1179fb0ab43ae56c77dc8ee394403652e670
parent9dc9120c774e1d7e3d939542200bd44829c0059d
ALSA: opti-miro: fix OOPS if hardware is not detected

If a hardware is not detected there is a kernel crash
due to not initialized snd_miro->aci pointer. This pointer
is initialized after detection of the opti (miro) chip.

This bug was introduced by patches to expose
ACI mikser outside the snd-miro driver.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/opti9xx/miro.c