Skip to content

Commit

Permalink
ioctl: Add dispCtlCode tags to control transfers
Browse files Browse the repository at this point in the history
Signed-off-by: Tormod Volden <[email protected]>
  • Loading branch information
tormodvolden committed Oct 13, 2021
1 parent 8b6c35d commit ee27cd5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libusb/src/driver/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,9 @@ NULL : input_buffer + sizeof(libusb_request),
break;

case LIBUSB_IOCTL_CONTROL_WRITE: // METHOD_IN_DIRECT (CONTROL_WRITE)

dispCtlCode = "CONTROL_WRITE";

// check if the request and buffer is valid
if (!request || !transfer_buffer_mdl || input_buffer_length < sizeof(libusb_request))
{
Expand All @@ -690,6 +693,9 @@ NULL : input_buffer + sizeof(libusb_request),
break;

case LIBUSB_IOCTL_CONTROL_READ: // METHOD_OUT_DIRECT (CONTROL_READ)

dispCtlCode = "CONTROL_READ";

// check if the request and buffer is valid
if (!request || !transfer_buffer_mdl || input_buffer_length < sizeof(libusb_request))
{
Expand Down

0 comments on commit ee27cd5

Please sign in to comment.