Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
754ea083
Commit
754ea083
authored
Aug 27, 2009
by
Dean Camera
Browse files
Fix memory corruption in Host mode Mass Storage Class driver.
parent
cd2dcc91
Changes
3
Show whitespace changes
Inline
Side-by-side
Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
View file @
754ea083
...
...
@@ -98,7 +98,7 @@ int main(void)
break
;
}
printf
(
"M
ous
e Enumerated.
\r\n
"
);
printf
(
"M
ass Storage Devic
e Enumerated.
\r\n
"
);
USB_HostState
=
HOST_STATE_Configured
;
break
;
case
HOST_STATE_Configured
:
...
...
Demos/Host/makefile
View file @
754ea083
...
...
@@ -14,5 +14,5 @@
# code.
%
:
#make -C ClassDriver/ $@ --
TODO: Re-enable
once
Host
M
ode
c
lass
d
river
s
complete
@
echo
TODO: Re-enable
building of
Host
m
ode
C
lass
D
river
demos once
complete
make
-C
LowLevel/
$@
LUFA/Drivers/USB/Class/Host/MassStorage.c
View file @
754ea083
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment