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>
Loading
-
mentioned in commit 53fd0a8d
-
mentioned in commit e86561bc
-
mentioned in commit 32183f20
-
mentioned in commit 97717677
-
mentioned in commit 9f50bc78
-
mentioned in commit 6fd3a8cf
-
mentioned in commit 2bcaf181
-
mentioned in commit baa2ecc8
-
mentioned in commit d73e278c
-
mentioned in commit addb9cf1
-
mentioned in commit 5e22be39
-
mentioned in commit 2f84e5a5
-
mentioned in commit 7c760667
-
mentioned in commit 5ea18f77
-
mentioned in commit 5af817c6
-
mentioned in commit ac409187
-
mentioned in commit d810dbcf
-
mentioned in commit fe17b60e
-
mentioned in commit f84197f4
Please sign in to comment