uaa->ifaces contains pointers so set its entry to NULL not 0.
This commit is contained in:
parent
9df0eb1bf3
commit
93352848ac
@ -930,7 +930,7 @@ usbd_probe_and_attach(device_t parent, usbd_device_handle dev,
|
||||
usbd_devinfo(dev, 1, devinfo);
|
||||
device_set_desc_copy(bdev, devinfo);
|
||||
if (device_probe_and_attach(bdev) == 0) {
|
||||
ifaces[i] = 0; /* consumed */
|
||||
ifaces[i] = NULL; /* consumed */
|
||||
found++;
|
||||
/* create another child for the next iface */
|
||||
bdev = device_add_child(parent, NULL, -1);
|
||||
|
Loading…
Reference in New Issue
Block a user