summaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorSzymon Heidrich <szymon.heidrich@gmail.com>2022-01-24 12:14:00 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-02-16 12:43:54 +0100
commitf3bcd744b0bc8dcc6cdb3ac5be20f54aecfb78a4 (patch)
treeaf67e47858878076886dd9aabd96099ce99c353a /lib/netdev-notifier-error-inject.c
parent1187fc20f45a1b3160998105614cdffa09d8f0d8 (diff)
USB: gadget: validate interface OS descriptor requests
commit 75e5b4849b81e19e9efe1654b30d7f3151c33c2c upstream. 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>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions