Changes in / [04c722f9:f06c9ec] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
r04c722f9 rf06c9ec 234 234 usb_endpoint_pipe_start_session(&result->endpoints.control); 235 235 opResult = usb_request_get_descriptor(&result->endpoints.control, 236 USB_REQUEST_TYPE_ STANDARD, USB_REQUEST_RECIPIENT_DEVICE,236 USB_REQUEST_TYPE_CLASS, USB_REQUEST_RECIPIENT_DEVICE, 237 237 USB_DESCTYPE_HUB, 238 238 0, 0, serialized_descriptor, … … 243 243 dprintf(USB_LOG_LEVEL_ERROR, "failed when receiving hub descriptor, badcode = %d",opResult); 244 244 free(serialized_descriptor); 245 free(result); 246 return NULL; 245 return result; 247 246 } 248 247 dprintf(USB_LOG_LEVEL_DEBUG2, "deserializing descriptor"); … … 250 249 if(descriptor==NULL){ 251 250 dprintf(USB_LOG_LEVEL_WARNING, "could not deserialize descriptor "); 252 free(result);253 return NULL;251 result->port_count = 1;///\TODO this code is only for debug!!! 252 return result; 254 253 } 255 254 … … 287 286 288 287 usb_hub_info_t * hub_info = usb_create_hub_info(dev); 289 if(!hub_info){290 return EINTR;291 }292 288 293 289 int opResult; … … 298 294 opResult = usb_hub_process_configuration_descriptors(hub_info); 299 295 if(opResult != EOK){ 300 dprintf(USB_LOG_LEVEL_ERROR,"could not get con figuration descriptors, %d",296 dprintf(USB_LOG_LEVEL_ERROR,"could not get condiguration descriptors, %d", 301 297 opResult); 302 298 return opResult;
Note:
See TracChangeset
for help on using the changeset viewer.