projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe7e873
)
ALSA: cs4232: fix crash during chip PNP detection
author
Krzysztof Helt
<krzysztof.h1@wp.pl>
Wed, 23 Jul 2008 05:48:49 +0000
(07:48 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Sun, 27 Jul 2008 08:22:27 +0000
(10:22 +0200)
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>
sound/isa/cs423x/cs4236.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/isa/cs423x/cs4236.c
b/sound/isa/cs423x/cs4236.c
index dbe63db4bfd654cfb656aee997d873353374c02b..4d4b8ddc26bac1711e51b772212497cdfe0f2ddf 100644
(file)
--- 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;