]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Always check array bounds in alc_get_line_out_pfx
authorDavid Henningsson <david.henningsson@canonical.com>
Wed, 17 Oct 2012 10:43:44 +0000 (12:43 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 17 Oct 2012 11:00:18 +0000 (13:00 +0200)
commit4e32215387668c6fd27e888fa370d668b3d2529d
tree9542a61abab309a883af0a6fcabfc6544d3afc75
parentc2a5e72ca018c118a48a81b8a5f93f0e779a6680
ALSA: hda - Always check array bounds in alc_get_line_out_pfx

Even when CONFIG_SND_DEBUG is not enabled, we don't want to
return an arbitrary memory location when the channel count is
larger than we expected.

Cc: stable@kernel.org
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c