UPSTREAM: USB: gadget: detect too-big endpoint 0 requests
commit 153a2d7e upstream. 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> Change-Id: Ic8bf31bb66c73d183cc4e883aaf8e469b744d1cd
Loading
Please sign in to comment