Skip to content

Commit

Permalink
ALSA: hda - Fix Realtek's chained fixup checks
Browse files Browse the repository at this point in the history
The check of chained fixup list entry was done against the wrong element.
A stupid mistake during refactoring.

Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed May 2, 2011
1 parent ebb4724 commit 24af2b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -1704,11 +1704,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;
}
}

Expand Down

0 comments on commit 24af2b1

Please sign in to comment.