summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-09-09 12:22:42 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-09-09 12:22:42 +0000
commitb2fc946d3f5794736d99e9c9dd426c636e268260 (patch)
tree232237e8975aae67b5d9bd721217673b1f689596
parent71df84d2d609146c6298745dc250cf7b56002520 (diff)
Fix another path to an uninitialized SUB config provided to us from the
controller. From xpp rev. 6071. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4516 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r--xpp/utils/fpga_load.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xpp/utils/fpga_load.c b/xpp/utils/fpga_load.c
index 7102501..9759fa9 100644
--- a/xpp/utils/fpga_load.c
+++ b/xpp/utils/fpga_load.c
@@ -531,6 +531,10 @@ const struct astribank_type *my_usb_device_identify(const char devpath[], struct
}
dev_desc = &mydev->dev->descriptor;
config_desc = mydev->dev->config;
+ if (!config_desc) {
+ ERR("No configuration descriptor: strange USB1 controller?\n");
+ return 0;
+ }
for(i = 0; i < sizeof(astribank_types)/sizeof(astribank_types[0]); i++) {
if(match_usb_device_identity(config_desc, &astribank_types[i])) {
DBG("Identified[%d]: interfaces=%d endpoints=%d: \"%s\"\n",