diff options
author | Takashi Iwai <tiwai@suse.de> | 2016-03-15 15:20:58 +0100 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2016-04-18 08:50:59 -0400 |
commit | 4fa1657957f668fcc9606268df01bc0f3e4f1379 (patch) | |
tree | 28ac0933e528fcbcce94379be42e3c8b8c82eb15 /drivers | |
parent | 6ed72ce6ab8b38803b12df8c62a3a52becf19017 (diff) |
ALSA: usb-audio: Add sanity checks for endpoint accesses
[ Upstream commit 447d6275f0c21f6cc97a88b3a0c601436a4cdf2a ]
Add some sanity check codes before actually accessing the endpoint via
get_endpoint() in order to avoid the invalid access through a
malformed USB descriptor. Mostly just checking bNumEndpoints, but in
one place (snd_microii_spdif_default_get()), the validity of iface and
altsetting index is checked as well.
Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=971125
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions