From: Mateusz Kulikowski Date: Wed, 23 Oct 2013 18:26:27 +0000 (+0200) Subject: usb: ohci-hcd: submit_common_msg: report actual_length properly X-Git-Tag: v2014.01-rc1~78^2~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=522c95647df3251ffda2749ded207f30964c8866;p=oweals%2Fu-boot.git usb: ohci-hcd: submit_common_msg: report actual_length properly submit_common_msg should report amount of data passed from/to device. Instead, it always returned size requested by Host. Signed-off-by: Mateusz Kulikowski --- diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 4ed07da842..219d18232a 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c @@ -1548,7 +1548,7 @@ int submit_common_msg(struct usb_device *dev, unsigned long pipe, void *buffer, } dev->status = stat; - dev->act_len = transfer_len; + dev->act_len = urb->actual_length; #ifdef DEBUG pkt_print(urb, dev, pipe, buffer, transfer_len,