am7xxx: check the return value of libusb_get_configuration()
authorAntonio Ospite <ao2@ao2.it>
Mon, 20 Apr 2015 15:09:19 +0000 (17:09 +0200)
committerAntonio Ospite <ao2@ao2.it>
Mon, 20 Apr 2015 16:03:55 +0000 (18:03 +0200)
libusb_get_configuration() can still fail after the device has been
opened, so check its actual return value before trusting the returned
current_configuration.


No differences found