diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-08-27 08:01:33 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-08-27 08:01:33 +0000 |
commit | 754ea083d4c828318ffc621e00d2053acb842e20 (patch) | |
tree | dfd214bd41a390f22f463c2a5d8a5006d6e0439a /LUFA | |
parent | cd2dcc9163c6a77c5f358ed27692962dd5b6b214 (diff) | |
download | lufa-754ea083d4c828318ffc621e00d2053acb842e20.tar.gz lufa-754ea083d4c828318ffc621e00d2053acb842e20.tar.bz2 lufa-754ea083d4c828318ffc621e00d2053acb842e20.zip |
Fix memory corruption in Host mode Mass Storage Class driver.
Diffstat (limited to 'LUFA')
-rw-r--r-- | LUFA/Drivers/USB/Class/Host/MassStorage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/Class/Host/MassStorage.c b/LUFA/Drivers/USB/Class/Host/MassStorage.c index 6c01ed4d8..3db4aafef 100644 --- a/LUFA/Drivers/USB/Class/Host/MassStorage.c +++ b/LUFA/Drivers/USB/Class/Host/MassStorage.c @@ -242,7 +242,7 @@ static uint8_t MS_Host_SendReceiveData(USB_ClassInfo_MS_Host_t* MSInterfaceInfo, }
static uint8_t MS_Host_GetReturnedStatus(USB_ClassInfo_MS_Host_t* MSInterfaceInfo,
- MS_CommandStatusWrapper_t* SCSICommandStatus)
+ MS_CommandStatusWrapper_t* SCSICommandStatus)
{
uint8_t ErrorCode = PIPE_RWSTREAM_NoError;
@@ -252,7 +252,7 @@ static uint8_t MS_Host_GetReturnedStatus(USB_ClassInfo_MS_Host_t* MSInterfaceInf Pipe_SelectPipe(MSInterfaceInfo->Config.DataINPipeNumber);
Pipe_Unfreeze();
- if ((ErrorCode = Pipe_Read_Stream_LE(&SCSICommandStatus, sizeof(MS_CommandStatusWrapper_t))) != PIPE_RWSTREAM_NoError)
+ if ((ErrorCode = Pipe_Read_Stream_LE(SCSICommandStatus, sizeof(MS_CommandStatusWrapper_t))) != PIPE_RWSTREAM_NoError)
return ErrorCode;
Pipe_ClearIN();
|