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:
Björn Stenberg 2007-11-24 22:40:37 +00:00
parent bfff12aff9
commit d2b86885d5

View file

@ -257,7 +257,7 @@ void handle_scsi(struct command_block_wrapper* cbw)
}
ata_read_sectors(IF_MV2(0,) current_cmd.sector, current_cmd.count,
&transfer_buffer);
transfer_buffer);
state = SENDING;
usb_drv_send(EP_TX, transfer_buffer,
MIN(current_cmd.count * SECTOR_SIZE, length));