Skip to content

Commit

Permalink
ALSA: hda - Fix wrong model range check for ALC268
Browse files Browse the repository at this point in the history
Fix a wrong value passed to snd_hda_check_board_codec_sid_config() as
the upper-limit in parse_alc268(), so that any wrong value can't be
passed.

So far, no bogus value was set in the quirk entries, so this won't give
any behavioral changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Mar 8, 2010
1 parent 2abbf43 commit 50ae0aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -13201,7 +13201,7 @@ static int patch_alc268(struct hda_codec *codec)

if (board_config < 0 || board_config >= ALC268_MODEL_LAST)
board_config = snd_hda_check_board_codec_sid_config(codec,
ALC882_MODEL_LAST, alc268_models, alc268_ssid_cfg_tbl);
ALC268_MODEL_LAST, alc268_models, alc268_ssid_cfg_tbl);

if (board_config < 0 || board_config >= ALC268_MODEL_LAST) {
printk(KERN_INFO "hda_codec: %s: BIOS auto-probing.\n",
Expand Down

0 comments on commit 50ae0aa

Please sign in to comment.