XHCI: calls FreeDescriptor before returning.

introduced in the previous commit.
This commit is contained in:
Jérôme Duval 2019-02-23 20:58:57 +01:00
parent 342c997667
commit 150ce798c2

View File

@ -768,8 +768,8 @@ XHCI::SubmitNormalRequest(Transfer *transfer)
descriptor->transfer = transfer;
status = _LinkDescriptorForPipe(descriptor, endpoint);
if (status != B_OK) {
return status;
FreeDescriptor(descriptor);
return status;
}
TRACE("SubmitNormalRequest() request linked\n");