]> git.sur5r.net Git - openocd/commit
libusb: idProduct of USB device may be zero
authorHsiangkai Wang <Hsiangkai@gmail.com>
Wed, 26 Dec 2012 09:32:10 +0000 (17:32 +0800)
committerFreddie Chopin <freddie.chopin@gmail.com>
Sun, 27 Jan 2013 14:14:21 +0000 (14:14 +0000)
commitf807d6ab3dc86cd258fb459546b52d9b07fe7986
tree7d69c40310e1658d766bf6fbe4a8514b4be4f989
parent3eb7d77601b268ac50f9efd152409e1e7a1d83c7
libusb: idProduct of USB device may be zero

There is no constraint about idProduct in USB spec.  So, pids[i] may be 0 for USB devices.

Change-Id: I19d8974f4e7082e8b7e1f2d33c019ac4e61bc1e2
Signed-off-by: Hsiangkai Wang <hsiangkai@gmail.com>
Reviewed-on: http://openocd.zylin.com/1091
Tested-by: jenkins
Reviewed-by: Xiaofan <xiaofanc@gmail.com>
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
src/jtag/drivers/libusb0_common.c
src/jtag/drivers/libusb1_common.c