Skip to content

Commit

Permalink
ALSA: hda - Fix broken hash chain allocation
Browse files Browse the repository at this point in the history
The chaining for amp hash got broken due to the rewrite with
snd_array.  Fixed now.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Nov 6, 2008
1 parent b910d9a commit ea2da6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit ea2da6e

Please sign in to comment.