From: Antonio Ospite Date: Mon, 20 Apr 2015 15:09:19 +0000 (+0200) Subject: am7xxx: check the return value of libusb_get_configuration() X-Git-Tag: v0.1.6~27 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/2bb4878fcc5ccc152634087f0aa13ab1eec56de0?hp=2bb4878fcc5ccc152634087f0aa13ab1eec56de0 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. ---