Hi, On Thu, Jul 5, 2018 at 7:31 AM, Antti Seppälä <a.seppala@xxxxxxxxx> wrote: > Make sure only to copy any actual data rather than the whole buffer, > when releasing the temporary buffer used for unaligned non-isochronous > transfers. > > Taken directly from commit 0efd937e27d5e ("USB: ehci-tegra: fix inefficient > copy of unaligned buffers") > > Tested with Lantiq xRX200 (MIPS) and RPi Model B Rev 2 (ARM) > > Signed-off-by: Antti Seppälä <a.seppala@xxxxxxxxx> > --- > drivers/usb/dwc2/hcd.c | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) I haven't personally gone down and tracked down the validity of "actual_length", but I agree that this matches what tegra has done and seems sane. Reviewed-by: Douglas Anderson <dianders@xxxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html