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)
commit2bb4878fcc5ccc152634087f0aa13ab1eec56de0
tree84abeb3f123465ccbba0c7294f73bb44ad0ef850
parent361d1aa96547f527f1c60a871db35c943bc07471
am7xxx: check the return value of libusb_get_configuration()

libusb_get_configuration() can still fail after the device has been
opened, so check its actual return value before trusting the returned
current_configuration.
src/am7xxx.c