OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ALSA: cs46xx: Potential NULL dereference in probe
[android-x86/kernel.git]
/
sound
/
pci
/
cs46xx
/
dsp_spos.c
diff --git
a/sound/pci/cs46xx/dsp_spos.c
b/sound/pci/cs46xx/dsp_spos.c
index
4a0cbd2
..
3191666
100644
(file)
--- a/
sound/pci/cs46xx/dsp_spos.c
+++ b/
sound/pci/cs46xx/dsp_spos.c
@@
-899,6
+899,9
@@
int cs46xx_dsp_proc_done (struct snd_cs46xx *chip)
struct dsp_spos_instance * ins = chip->dsp_spos_instance;
int i;
+ if (!ins)
+ return 0;
+
snd_info_free_entry(ins->proc_sym_info_entry);
ins->proc_sym_info_entry = NULL;