[Bug 270900] emulators/virtualbox-ose USB passthrough fails with Failed to create a proxy device for the USB device. (Error: VERR_INVALID_PARAMETER)

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 04 Feb 2024 21:53:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270900

Igor Malyshev <bsd@itglob.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bsd@itglob.ru

--- Comment #11 from Igor Malyshev <bsd@itglob.ru> ---
Created attachment 248190
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=248190&action=edit
USB passthrough fix after 9b077d72bcc313baea2b9283afc7f568739eaadc

after 9b077d72bcc313baea2b9283afc7f568739eaadc this was changed
-       if (fs_ep_ptr == NULL || ep_index_max > 127)
+       if (fs_ep_ptr == NULL || ep_index_max > USB_FS_XFER_MAX)
where USB_FS_XFER_MAX defined as 126 but in
src/VBox/Devices/USB/freebsd/USBProxyDevice-freebsd.cpp USBFBSD_MAXENDPOINTS
defined as 127 so change it to 126.
patch attached.

-- 
You are receiving this mail because:
You are on the CC list for the bug.