mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 18:12:48 +00:00
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 0efd937e27 ("USB: ehci-tegra: fix inefficient
copy of unaligned buffers")
Tested with Lantiq xRX200 (MIPS) and RPi Model B Rev 2 (ARM)
Reviewed-by: Douglas Anderson <[email protected]>
Signed-off-by: Antti Seppälä <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>