Commit ea2da6e8 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Fix broken hash chain allocation

The chaining for amp hash got broken due to the rewrite with
snd_array.  Fixed now.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent b910d9ae
......@@ -901,6 +901,7 @@ static struct hda_cache_head *get_alloc_hash(struct hda_cache_rec *cache,
info = snd_array_new(&cache->buf);
if (!info)
return NULL;
cur = cache->buf.used - 1; /* the last entry */
info->key = key;
info->val = 0;
info->next = cache->hash[idx];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment