diff options
author | Kenjiro Tsuji <kenjiro.tsuji@oracle.com> | 2019-09-25 17:11:12 -0700 |
---|---|---|
committer | Nathan Hjelm <hjelmn@google.com> | 2019-09-26 11:44:39 -0600 |
commit | 8b04a5510f541306e37ad8cfa83984f913fa08d1 (patch) | |
tree | 6e9000e8f088db394c08f63fd2db5067cf186176 /libusb/version_nano.h | |
parent | a45730f4339d5d6391757ee2d4c2f86b8411de5f (diff) | |
download | libusb-8b04a5510f541306e37ad8cfa83984f913fa08d1.tar.gz |
Solaris: fails to find USB devices on SPARC platform
On SPARC platform, libusb fails to find USB devices. sunos_fill_in_dev_info()
reads the usb-dev-descriptor property and stores idVendor and idProduct to
the dev_sesc structure in little endian. However, when creating a device name
for 'match_str' to be specified to sunos_physpath_to_devlink(), it's using the
idVendor and idProduct in dev_descr as is without converting them to the host
endian, that is big endian for SPARC. As a result, 'match_str' has a wrong
device name and sunos_physpath_to_devlink() fails to find the device path
corresponding to the USB device. idVendor and idProduct need to be converted
to the host endian when creating 'match_str'.
This is a fix for #587.
Closes #628
Signed-off-by: Nathan Hjelm <hjelmn@google.com>
Diffstat (limited to 'libusb/version_nano.h')
-rw-r--r-- | libusb/version_nano.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 15f2824..c09c5a4 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11400 +#define LIBUSB_NANO 11401 |