ALSA: cs4232: fix crash during chip PNP detection

The acard->wss pointer is uninitialized in this function
which leads to crash during chip PNP detection.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Acked-by: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Krzysztof Helt and committed by
Takashi Iwai
b15ebe26 fe7e873f

+1
+1
sound/isa/cs423x/cs4236.c
··· 325 325 static int __devinit snd_card_cs4232_pnp(int dev, struct snd_card_cs4236 *acard, 326 326 struct pnp_dev *pdev) 327 327 { 328 + acard->wss = pdev; 328 329 if (snd_cs423x_pnp_init_wss(dev, acard->wss) < 0) 329 330 return -EBUSY; 330 331 cport[dev] = -1;