提交 c217429b 编写于 作者: T Takashi Iwai

ALSA: hda - Add missing NULL check in amp hash allocation

Added the missing NULL check from allocator in get_alloc_hash().
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 64154835
......@@ -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];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册