summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-12-09 18:59:27 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-12-12 13:04:03 +0100
commit153a2d7e3350cc89d406ba2d35be8793a64c2038 (patch)
treea56722a96e98ca8a62d488219c7655a05acf412d /usr
parent7faac1953ed1f658f719cdf7bb7303fa5eef822c (diff)
downloadlwn-153a2d7e3350cc89d406ba2d35be8793a64c2038.tar.gz
lwn-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 'usr')
0 files changed, 0 insertions, 0 deletions