1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-08 13:28:05 +00:00

uaa->ifaces contains pointers so set its entry to NULL not 0.

This commit is contained in:
Nick Hibma 2008-11-03 22:05:44 +00:00
parent b74d3e0c37
commit bcde061b22
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184604

View File

@ -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);