Fixed memset in usbHsEpClose() which was using sizeof() with the wrong struct. Closes #337.

This commit is contained in:
yellows8 2019-10-18 22:28:53 -04:00
parent 415adf5b93
commit 9b44261767
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43

View File

@ -340,7 +340,7 @@ void usbHsEpClose(UsbHsClientEpSession* s) {
serviceClose(&s->s);
eventClose(&s->eventXfer);
memset(s, 0, sizeof(UsbHsClientIfSession));
memset(s, 0, sizeof(UsbHsClientEpSession));
}
static Result _usbHsEpSubmitRequest(UsbHsClientEpSession* s, void* buffer, u32 size, u32 timeoutInMs, u32* transferredSize) {