usb: dwc3: gadget: increment request->actual once
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 29 Jul 2016 00:17:58 +0000 (03:17 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 10 Aug 2016 11:15:57 +0000 (14:15 +0300)
commitc7de573471832dff7d31f0c13b0f143d6f017799
tree3ca47cf8a8235647ba051e40576a6ec988f692c7
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
usb: dwc3: gadget: increment request->actual once

When using SG lists, we would end up setting
request->actual to:

num_mapped_sgs * (request->length - count)

Let's fix that up by incrementing request->actual
only once.

Cc: <stable@vger.kernel.org>
Reported-by: Brian E Rogers <brian.e.rogers@intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c