projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d95ad4a
)
ALSA: hda - Add missing NULL check in snd_hda_create_spdif_in_ctls()
author
Takashi Iwai
<tiwai@suse.de>
Fri, 6 Feb 2009 15:21:20 +0000
(16:21 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 6 Feb 2009 15:21:20 +0000
(16:21 +0100)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
patch
|
blob
|
history
diff --git
a/sound/pci/hda/hda_codec.c
b/sound/pci/hda/hda_codec.c
index c9158799ccb6a25915aa820dbc2e97f6dd293aa0..93412f335dc479fe494ede57887a271aa349b319 100644
(file)
--- a/
sound/pci/hda/hda_codec.c
+++ b/
sound/pci/hda/hda_codec.c
@@
-1984,6
+1984,8
@@
int snd_hda_create_spdif_in_ctls(struct hda_codec *codec, hda_nid_t nid)
}
for (dig_mix = dig_in_ctls; dig_mix->name; dig_mix++) {
kctl = snd_ctl_new1(dig_mix, codec);
+ if (!kctl)
+ return -ENOMEM;
kctl->private_value = nid;
err = snd_hda_ctl_add(codec, kctl);
if (err < 0)