Commit b15ebe26 authored by Krzysztof Helt's avatar Krzysztof Helt Committed by Takashi Iwai

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: default avatarKrzysztof Helt <krzysztof.h1@wp.pl>
Acked-by: default avatarRene Herman <rene.herman@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent fe7e873f
...@@ -325,6 +325,7 @@ static int __devinit snd_cs423x_pnp_init_mpu(int dev, struct pnp_dev *pdev) ...@@ -325,6 +325,7 @@ static int __devinit snd_cs423x_pnp_init_mpu(int dev, struct pnp_dev *pdev)
static int __devinit snd_card_cs4232_pnp(int dev, struct snd_card_cs4236 *acard, static int __devinit snd_card_cs4232_pnp(int dev, struct snd_card_cs4236 *acard,
struct pnp_dev *pdev) struct pnp_dev *pdev)
{ {
acard->wss = pdev;
if (snd_cs423x_pnp_init_wss(dev, acard->wss) < 0) if (snd_cs423x_pnp_init_wss(dev, acard->wss) < 0)
return -EBUSY; return -EBUSY;
cport[dev] = -1; cport[dev] = -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment