diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-11-06 18:49:48 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-11-06 18:51:36 -0500 |
commit | ea2da6e898033b9736a26cf588b9ce841a433337 (patch) | |
tree | f68f101671de69e5e134161805d96abf2813081f | |
parent | b910d9ae5b370cf5bf9d6a71028119861b6ea8a4 (diff) |
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>
-rw-r--r-- | sound/pci/hda/hda_codec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 6f170b281e85..06e99c785155 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
@@ -901,6 +901,7 @@ static struct hda_cache_head *get_alloc_hash(struct hda_cache_rec *cache, | |||
901 | info = snd_array_new(&cache->buf); | 901 | info = snd_array_new(&cache->buf); |
902 | if (!info) | 902 | if (!info) |
903 | return NULL; | 903 | return NULL; |
904 | cur = cache->buf.used - 1; /* the last entry */ | ||
904 | info->key = key; | 905 | info->key = key; |
905 | info->val = 0; | 906 | info->val = 0; |
906 | info->next = cache->hash[idx]; | 907 | info->next = cache->hash[idx]; |