usb: musb: fix inefficient copy of unaligned buffers

Make sure only to copy any actual data rather than the whole buffer,
when releasing the temporary buffer used for unaligned non-isochronous
transfers.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
Johan Hovold 2015-04-23 16:06:50 +02:00 • committed by Felipe Balbi
commit d72348fb5c