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 15:38:59 +0000 (16:38 +0100)
commitf8e6a3412dc690765fcec4e0441892f3aeb88b9e
tree4f342cb01d6655bd07ea07acf4d052b9548121e1
parentde8dbb7b02faf959196232b0d28dec2d3c8dfccf
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