diff options
author | 2021-12-09 18:59:27 +0100 | |
---|---|---|
committer | 2021-12-12 13:04:03 +0100 | |
commit | 153a2d7e3350cc89d406ba2d35be8793a64c2038 (patch) | |
tree | a56722a96e98ca8a62d488219c7655a05acf412d /scripts/gdb/linux/utils.py | |
parent | xhci: avoid race between disable slot command and host runtime suspend (diff) | |
download | wireguard-linux-153a2d7e3350cc89d406ba2d35be8793a64c2038.tar.xz wireguard-linux-153a2d7e3350cc89d406ba2d35be8793a64c2038.zip |
USB: gadget: detect too-big endpoint 0 requests
Sometimes USB hosts can ask for buffers that are too large from endpoint
0, which should not be allowed. If this happens for OUT requests, stall
the endpoint, but for IN requests, trim the request size to the endpoint
buffer size.
Co-developed-by: Szymon Heidrich <szymon.heidrich@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions