Changes in uspace/drv/ohci/root_hub.c [b2387c2:6ab7f3e9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/root_hub.c
rb2387c2 r6ab7f3e9 57 57 .device_version = 0, 58 58 .length = sizeof (usb_standard_device_descriptor_t), 59 /// \TODO this value is guessed 59 60 .max_packet_size = 8, 60 61 .vendor_id = 0x16db, … … 467 468 468 469 usb_hub_bm_request_type_t request_type = request_packet->request_type; 469 if (buffer_size < 4 ) {470 if (buffer_size < 4/*request_packet->length*/) {///\TODO 470 471 usb_log_warning("requested more data than buffer size\n"); 471 472 return EINVAL; … … 677 678 (instance->registers->rh_port_status[port - 1] | (1 << feature)) 678 679 & (~port_clear_feature_valid_mask); 680 /// \TODO any error? 681 679 682 return EOK; 680 683 } … … 704 707 & (~port_clear_feature_valid_mask)) 705 708 | (1 << feature); 709 /// \TODO any error? 706 710 707 711 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.