From d2b86885d54c727e4b30d5fef726c8cfb1242eb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Sat, 24 Nov 2007 22:40:37 +0000 Subject: [PATCH] Fixed memory corruption bug for those testing usb_storage. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15798 a1c6a512-1295-4272-9138-f99709370657 --- firmware/usbstack/usb_storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));