]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/realtek - Fix overflow of vol/sw check bitmap
authorTakashi Iwai <tiwai@suse.de>
Thu, 16 Feb 2012 15:38:07 +0000 (16:38 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 16 Feb 2012 15:39:14 +0000 (16:39 +0100)
commit3f8ee69e8998a5a910c65e0b1d68c921e4475c83
tree4c76b1d76cbb9dac76662a92b172a22e3a6b04f3
parent2d9f56d37ffb3b29508bc7156f26098245071fe4
ALSA: hda/realtek - Fix overflow of vol/sw check bitmap

The bitmap introduced in the commit [7b42a5c1: ALSA: hda/realtek - Fix
missing volume controls with ALC260] is too narrow for some codecs,
which may have more NIDs than 0x20, thus it may overflow the bitmap
array on them.

Just double the number to cover all and also add a sanity-check code
to be safer.

Cc: <stable@kernel.org> [v3.2+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c