update usbhid-dump to 1.3
Merge branch 'master' of github.com:gregkh/usbutils
Possible buffer overflow when using SYSFS_STR

Macro SYSFS_STR was set to read MY_SYSFS_FILENAME_LEN (255) chars
but size of arrays is only 64.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Reading 26 item in array with size 12.

Walking through array chconfig (of size only 12 items)
by for loop with stop-value 26.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Using uninitialized value as index

Variable 'k' was not initialize before it's usage here.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Possible resource leak

If (!pn || p == pn) is true function returns
and memory allocated few lines earlier will
be lost.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Wrong shifting of bmMPEGFeatures byte

In previouse version ((buf[7] << 4) & 3) was always zero.
Since we are interested in bits 4 and 5 there should be >> operator.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Buffer overun

Because readlink() does not null-terminate buffer, only return
number of written chars, thare is possibility that buf[ret] = 0;
will write to unallocated area.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
set arrays to NULL when freeing them.

(free_*) fix segfaulting when calling usb_probe() more than once

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
usbutils: Dump BOS descriptor for USB 2.01 devices.

USB devices with a BCD of 0x0201 or greater will have a USB 2.0
extension BOS descriptor.  They may also have a SuperSpeed Capabilities
BOS descriptor, which indicates a USB 3.0 device has been plugged into a
USB 2.0 only port.  Make lsusb display all BOS descriptors for USB 2.01
devices and later.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
simplify get_string()

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
make treedump() work if the database isn't there.

treedump() doesn't require neither names nor libusb so
it's a shame to abort in case we failed to parse usb.ids or
to initialize libusb...

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
--tree, --help, and better build documentation
build: add a --disable-usbids option to avoid installing usb.ids

Also avoid installing update-usbids.sh script if we're not going to
install usb.ids. This is useful for Gentoo since we now have a
separate package for usb.ids, which can be updated independently, and
that can be updated without this script.
Merge pull request #8 from Flameeyes/master

Allow disabling usb.ids (and script) install.
Update usbhid-dump to complete 1.3 release

Update usbhid-dump to complete 1.3 release. Previous update was to
incomplete release, missing two last changes.

This release adds several build fixes, manual page and an infinite loop fix
in command-line option parsing on unsigned char platforms.

Signed-off-by: Nikolai Kondrashov <spbnick@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Merge pull request #7 from veltzer/master

Patch reworked
lsusb-t: don't show error when driver link is missing
Option -V(version) doesn't require an argument.
Signed-off-by: Roger Tseng <rogerable@realtek.com>
Merge pull request #10 from rogerable/master

Minor issue: lsusb -V should not take a argument