Acount for transfer->size being size-1 when counting *actual
This commit is contained in:
parent
52d8255d20
commit
2823526d28
1 changed files with 1 additions and 1 deletions
|
@ -989,7 +989,7 @@ grub_ohci_transfer (grub_usb_controller_t dev,
|
||||||
transfer->last_trans = tderr_virt->tr_index;
|
transfer->last_trans = tderr_virt->tr_index;
|
||||||
else
|
else
|
||||||
transfer->last_trans = -1;
|
transfer->last_trans = -1;
|
||||||
*actual = transfer->size;
|
*actual = transfer->size + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (err_halt) /* error, ED is halted by OHCI, i.e. can be modified */
|
else if (err_halt) /* error, ED is halted by OHCI, i.e. can be modified */
|
||||||
|
|
Loading…
Reference in a new issue