mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 15:22:39 +00:00
Acount for transfer->size being size-1 when counting *actual
This commit is contained in:
1 parent
52d8255d20
commit
2823526d28
1 file changed
+1
-1
+1
-1
@@ -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 */
|
||||||
|
|||||||
Reference in new issue
Block a user