]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: dwc2: Fix in ISOC request length checking
authorMinas Harutyunyan <Minas.Harutyunyan@synopsys.com>
Tue, 21 Jan 2020 10:24:04 +0000 (14:24 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Feb 2020 16:23:42 +0000 (17:23 +0100)
commit4404095458de4c49095f112db4e057b4d5735964
tree5998e2ef735eed41c18597186bd4be399a95f1fe
parentcf242e3b992c93253ed73d4e319c67a3268a6e17
usb: dwc2: Fix in ISOC request length checking

commit 860ef6cd3f90b84a1832f8a6485c90c34d3b588b upstream.

Moved ISOC request length checking from dwc2_hsotg_start_req() function to
dwc2_hsotg_ep_queue().

Fixes: 4fca54aa58293 ("usb: gadget: s3c-hsotg: add multi count support")
Signed-off-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/gadget.c