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)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 30 Oct 2012 23:26:49 +0000 (23:26 +0000)
commit4bd0ee768c5242d7ae09dbb66c9e531a22da1f68
treeca45c339bc6903a58bdf2a27be6d68990e294ab2
parent66a0d04ab3977f62ae3dcec25bd6df4a830cd02c
ALSA: hda - Always check array bounds in alc_get_line_out_pfx

commit 71aa5ebe36a4e936eff281b375a4707b6a8320f2 upstream.

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.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
sound/pci/hda/patch_realtek.c