Fixed memory corruption bug for those testing usb_storage.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15798 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bfff12aff9
commit
d2b86885d5
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ void handle_scsi(struct command_block_wrapper* cbw)
|
||||||
}
|
}
|
||||||
|
|
||||||
ata_read_sectors(IF_MV2(0,) current_cmd.sector, current_cmd.count,
|
ata_read_sectors(IF_MV2(0,) current_cmd.sector, current_cmd.count,
|
||||||
&transfer_buffer);
|
transfer_buffer);
|
||||||
state = SENDING;
|
state = SENDING;
|
||||||
usb_drv_send(EP_TX, transfer_buffer,
|
usb_drv_send(EP_TX, transfer_buffer,
|
||||||
MIN(current_cmd.count * SECTOR_SIZE, length));
|
MIN(current_cmd.count * SECTOR_SIZE, length));
|
||||||
|
|
Loading…
Reference in a new issue