commit | 75e5b4849b81e19e9efe1654b30d7f3151c33c2c | [log] [tgz] |
---|---|---|
author | Szymon Heidrich <szymon.heidrich@gmail.com> | Mon Jan 24 12:14:00 2022 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Feb 11 10:59:12 2022 +0100 |
tree | 4fce51754f077d11690321fb886a0c953c986e7b | |
parent | c853685d11c09da35cb49bbf8f0c001abdc0d0a9 [diff] |
USB: gadget: validate interface OS descriptor requests Stall the control endpoint in case provided index exceeds array size of MAX_CONFIG_INTERFACES or when the retrieved function pointer is null. Signed-off-by: Szymon Heidrich <szymon.heidrich@gmail.com> Cc: stable@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>