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 <mateusz.kulikowski@gmail.com>
This commit is contained in:
parent
351e9b2069
commit
522c95647d
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue