diff options
author | Björn Stenberg <bjorn@haxx.se> | 2007-11-24 22:40:37 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2007-11-24 22:40:37 +0000 |
commit | d2b86885d54c727e4b30d5fef726c8cfb1242eb2 (patch) | |
tree | f5253e3255131afb5025725f9c96c7e5625f3c5f /firmware | |
parent | bfff12aff9a0bb95418cd5cd7d6f9c0c84199fe3 (diff) |
Fixed memory corruption bug for those testing usb_storage.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15798 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/usbstack/usb_storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c index 2c02284dea..b852475663 100644 --- a/firmware/usbstack/usb_storage.c +++ b/firmware/usbstack/usb_storage.c @@ -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)); |