[<prev] [next>] [day] [month] [year] [list]
Message-ID: <132676714a8f13219734d5b2e6ac3384@zipernowsky.hu>
Date: Sat, 02 Aug 2008 15:15:26 +0200
From: Oliver Pinter <oliver@...ernowsky.hu>
To: Krzysztof Helt <krzysztof.h1@...pl>, stable@...nel.org
Cc: linux-kernel@...r.kernel.org, Rene Herman <rene.herman@...il.com>,
Takashi Iwai <tiwai@...e.de>,
Oliver Pinter <oliver.pntr@...il.com>
Subject: [RFC, 2.6.26.2-rc1] ALSA: cs4232: fix crash during chip PNP detection
>From b15ebe2616289da258f85b3ff142fca237ef9f59 Mon Sep 17 00:00:00 2001
From: Krzysztof Helt <krzysztof.h1@...pl>
Date: Wed, 23 Jul 2008 07:48:49 +0200
Subject: [PATCH] ALSA: cs4232: fix crash during chip PNP detection
[ Upstream commit b15ebe2616289da258f85b3ff142fca237ef9f59 ]
The acard->wss pointer is uninitialized in this function
which leads to crash during chip PNP detection.
Signed-off-by: Krzysztof Helt <krzysztof.h1@...pl>
Acked-by: Rene Herman <rene.herman@...il.com>
Signed-off-by: Takashi Iwai <tiwai@...e.de>
CC: Oliver Pinter <oliver.pntr@...il.com>
diff --git a/sound/isa/cs423x/cs4236.c b/sound/isa/cs423x/cs4236.c
index dbe63db..4d4b8dd 100644
--- a/sound/isa/cs423x/cs4236.c
+++ b/sound/isa/cs423x/cs4236.c
@@ -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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists