From: Takashi Iwai Date: Mon, 2 May 2011 11:55:36 +0000 (+0200) Subject: ALSA: hda - Fix Realtek's chained fixup checks X-Git-Url: http://git.alex.org.uk ALSA: hda - Fix Realtek's chained fixup checks BugLink: http://bugs.launchpad.net/bugs/780546 commit 24af2b1cc418d6791b1d9e56bf6070cccb752db3 upstream. The check of chained fixup list entry was done against the wrong element. A stupid mistake during refactoring. Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman Signed-off-by: Tim Gardner --- diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index d7e251b..24a3acb 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -1774,11 +1774,11 @@ static void alc_apply_fixup(struct hda_codec *codec, int action) codec->chip_name, fix->type); break; } - if (!fix[id].chained) + if (!fix->chained) break; if (++depth > 10) break; - id = fix[id].chain_id; + id = fix->chain_id; } }