Acount for transfer->size being size-1 when counting *actual

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-08-20 19:54:40 +02:00
parent 52d8255d20
commit 2823526d28

View file

@ -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 */