Changeset 18092dd3 in mainline
- Timestamp:
- 2018-01-29T13:23:28Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7bdfcaf
- Parents:
- 702729e
- Location:
- uspace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/device.c
r702729e r18092dd3 81 81 usb_log_debug("Obtained slot ID: %u.", dev->slot_id); 82 82 83 /* Temporary reference */ 83 84 endpoint_t *ep0_base; 84 85 if ((err = bus_endpoint_add(&dev->base, &ep0_initial_desc, &ep0_base))) … … 93 94 goto err_added; 94 95 96 /* Temporary reference */ 97 endpoint_del_ref(ep0_base); 98 95 99 return EOK; 96 100 97 101 err_added: 98 /* Bus reference */ 102 bus_endpoint_remove(ep0_base); 103 /* Temporary reference */ 99 104 endpoint_del_ref(ep0_base); 100 dev->base.endpoints[0] = NULL;101 105 err_slot: 102 106 hc_disable_slot(dev); -
uspace/lib/usbhost/src/usb2_bus.c
r702729e r18092dd3 122 122 .endpoint.max_packet_size = CTRL_PIPE_MIN_PACKET_SIZE, 123 123 }; 124 125 /* Temporary reference */ 124 126 endpoint_t *default_ep; 125 127 err = bus_endpoint_add(dev, &ep0_desc, &default_ep); … … 162 164 } 163 165 166 /* Temporary reference */ 167 endpoint_del_ref(default_ep); 168 164 169 return EOK; 165 170 166 171 err_default_control_ep: 167 172 bus_endpoint_remove(default_ep); 173 /* Temporary reference */ 174 endpoint_del_ref(default_ep); 168 175 err_address: 169 176 release_address(helper, address);
Note:
See TracChangeset
for help on using the changeset viewer.