summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu
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 /drivers/gpu/drm/amd/amdgpu
parent7faac1953ed1f658f719cdf7bb7303fa5eef822c (diff)
downloadlinux-153a2d7e3350cc89d406ba2d35be8793a64c2038.tar.bz2
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 'drivers/gpu/drm/amd/amdgpu')
0 files changed, 0 insertions, 0 deletions