]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: fix typo in wMaxPacketSize validation
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 22 Aug 2016 20:58:53 +0000 (16:58 -0400)
committerJiri Slaby <jslaby@suse.cz>
Fri, 23 Sep 2016 07:29:22 +0000 (09:29 +0200)
commit047f96ef719b4e2a0c475775c3489338ed0b9060
tree3644bb01160e7b8644c032e1e919cbd730c40e8a
parentaddf8b9697f9efb97dd8f599fcf17a3e128cfd5f
USB: fix typo in wMaxPacketSize validation

commit 6c73358c83ce870c0cf32413e5cadb3b9a39c606 upstream.

The maximum value allowed for wMaxPacketSize of a high-speed interrupt
endpoint is 1024 bytes, not 1023.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Fixes: aed9d65ac327 ("USB: validate wMaxPacketValue entries in endpoint descriptors")
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/core/config.c