Page MenuHomeFreeBSD

Bug 291774: expand range of errors reported by libusb_open(3)
Needs ReviewPublic

Authored by unitrunker_unitrunker.net on Thu, Dec 18, 8:32 PM.
Tags
None
Referenced Files
F140038890: D54296.diff
Fri, Dec 19, 9:52 AM
F140030154: D54296.id.diff
Fri, Dec 19, 7:01 AM
F140002557: D54296.id168364.diff
Thu, Dec 18, 9:24 PM
Subscribers

Details

Reviewers
None
Group Reviewers
USB
Summary

Expand the range of errors reported by libusb_open.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291774

Test Plan
  1. LIBUSB_ERROR_BUSY - open the same device twice
  2. LIBUSB_ERROR_NO_DEVICE - get list of devices, pause, unplug device, attempt to open the unplugged device.
  3. LIBUSB_ERROR_ACCESS - get list of devices, pause, alter permissions on the device node, attempt to open a device.
  4. LIBUSB_ERROR_INVALID_PARAM - pass a null device handle.
  5. LIBUSB_ERROR_NO_MEM - get list of devices, pause, simulate heap full, attempt to open a device.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 69383
Build 66266: arc lint + arc unit