aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-ep0.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2021-12-09 18:59:27 +0100
committerGreg Kroah-Hartman <[email protected]>2021-12-12 13:04:03 +0100
commit153a2d7e3350cc89d406ba2d35be8793a64c2038 (patch)
treea56722a96e98ca8a62d488219c7655a05acf412d /drivers/usb/cdns3/cdns3-ep0.c
parent7faac1953ed1f658f719cdf7bb7303fa5eef822c (diff)
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ep0.c')
0 files changed, 0 insertions, 0 deletions