projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6415483
)
ALSA: hda - Add missing NULL check in amp hash allocation
author
Takashi Iwai
<tiwai@suse.de>
Thu, 6 Nov 2008 23:23:30 +0000
(
00:23
+0100)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 6 Nov 2008 23:23:30 +0000
(
00:23
+0100)
Added the missing NULL check from allocator in get_alloc_hash().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/hda_codec.c
b/sound/pci/hda/hda_codec.c
index 810465bac5500de3f5c9316c29075c3babd460a5..f13834ba6b1d6fca3d13a6bca0e39bcafffb8b1f 100644
(file)
--- a/
sound/pci/hda/hda_codec.c
+++ b/
sound/pci/hda/hda_codec.c
@@
-899,6
+899,8
@@
static struct hda_cache_head *get_alloc_hash(struct hda_cache_rec *cache,
/* add a new hash entry */
info = snd_array_new(&cache->buf);
+ if (!info)
+ return NULL;
info->key = key;
info->val = 0;
info->next = cache->hash[idx];