mirror of
https://github.com/adulau/aha.git
synced 2025-01-03 22:53:18 +00:00
ALSA: hda - Add missing NULL check in amp hash allocation
Added the missing NULL check from allocator in get_alloc_hash(). Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
64154835c5
commit
c217429b14
1 changed files with 2 additions and 0 deletions
|
@ -899,6 +899,8 @@ static struct hda_cache_head *get_alloc_hash(struct hda_cache_rec *cache,
|
||||||
|
|
||||||
/* add a new hash entry */
|
/* add a new hash entry */
|
||||||
info = snd_array_new(&cache->buf);
|
info = snd_array_new(&cache->buf);
|
||||||
|
if (!info)
|
||||||
|
return NULL;
|
||||||
info->key = key;
|
info->key = key;
|
||||||
info->val = 0;
|
info->val = 0;
|
||||||
info->next = cache->hash[idx];
|
info->next = cache->hash[idx];
|
||||||
|
|
Loading…
Reference in a new issue