UHCI: Reject request debug transfers on control pipes.

Requests aren't handled in the debug transfer code path and would
end up in wrongly constructed descriptor chains.
This commit is contained in:
Michael Lotz 2014-09-01 00:12:37 +02:00
parent dbd527de10
commit 064018fbf1

View File

@ -667,6 +667,9 @@ UHCI::SubmitTransfer(Transfer *transfer)
status_t
UHCI::StartDebugTransfer(Transfer *transfer)
{
if ((transfer->TransferPipe()->Type() & USB_OBJECT_CONTROL_PIPE) != 0)
return B_UNSUPPORTED;
static transfer_data transferData;
transferData.first_descriptor = NULL;
transferData.transfer_queue = NULL;