2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-30 16:13:54 +08:00

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: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2008-11-07 00:49:48 +01:00
parent b910d9ae5b
commit ea2da6e898

View File

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