|
@@ -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];
|