staging: dwc2: validate urb->actual_length for OUT endpoints
commit84181086342615a8c6cb28901fd8d67939b3c903
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>
Mon, 23 Sep 2013 21:23:33 +0000 (23 14:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Sep 2013 23:48:46 +0000 (25 16:48 -0700)
tree674202101ee0cc1e95c12575911c09d2e268aaf6
parenta4ec93d8b4647358aaa1bde4e1fc055e5f4cf711
staging: dwc2: validate urb->actual_length for OUT endpoints

In dwc2_assign_and_init_hc(), validate urb->actual_length for OUT
endpoints before using the value. This fix is from the Synopsys
vendor driver.

Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dwc2/hcd.c