xhci: handle failed buffer copy to URB sg list and fix a W=1 copiler warning
authorMathias Nyman <mathias.nyman@linux.intel.com>
Thu, 17 Jun 2021 15:03:53 +0000 (18:03 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jun 2021 15:34:29 +0000 (17:34 +0200)
commit271a21d8b280b186f8cc9ca6f7151902efde9512
tree808b6e933eb400f603814f69c97e818c6b6118e1
parent90d551a5bc73d34c600507a1ef61f3a7c0840783
xhci: handle failed buffer copy to URB sg list and fix a W=1 copiler warning

Set the urb->actual_length to bytes successfully copied in case all bytes
weren't copied from a temporary buffer to the URB sg list.
Also print a debug message

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20210617150354.1512157-4-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci.c