Skip to content

Commit

Permalink
ALSA: cs4232: fix crash during chip PNP detection
Browse files Browse the repository at this point in the history
The acard->wss pointer is uninitialized in this function
which leads to crash during chip PNP detection.

Signed-off-by: Krzysztof Helt <[email protected]>
Acked-by: Rene Herman <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Krzysztof-H authored and tiwai committed Jul 27, 2008
1 parent fe7e873 commit b15ebe2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/isa/cs423x/cs4236.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
struct pnp_dev *pdev)
{
acard->wss = pdev;
if (snd_cs423x_pnp_init_wss(dev, acard->wss) < 0)
return -EBUSY;
cport[dev] = -1;
Expand Down

0 comments on commit b15ebe2

Please sign in to comment.