diff options
author | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-07-29 03:17:58 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-07 09:32:39 +0300 |
commit | 13af8c64ee5c05407d523fa79517a6b841f4fdc8 (patch) | |
tree | 0edc8cfb40eb726db617d435aafdac7ccc1e16b0 /drivers/usb/common/common.c | |
parent | 7dc7ec87feb4b926f8f7fc0cf7f86455b124b017 (diff) | |
download | linux-13af8c64ee5c05407d523fa79517a6b841f4fdc8.tar.xz |
usb: dwc3: gadget: increment request->actual once
commit c7de573471832dff7d31f0c13b0f143d6f017799 upstream.
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.
Reported-by: Brian E Rogers <brian.e.rogers@intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/common/common.c')
0 files changed, 0 insertions, 0 deletions