Changes in uspace/lib/drv/generic/remote_usbhc.c [5842493:3937bda] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_usbhc.c
r5842493 r3937bda 540 540 .endpoint = DEV_IPC_GET_ARG2(*call) 541 541 }; 542 size_t data_buffer_len = DEV_IPC_GET_ARG3(*call); 542 543 543 544 int rc; … … 546 547 void *data_buffer = NULL; 547 548 size_t setup_packet_len = 0; 548 size_t data_buffer_len = 0;549 549 550 550 rc = async_data_write_accept(&setup_packet, false, … … 554 554 return; 555 555 } 556 rc = async_data_write_accept(&data_buffer, false, 557 1, USB_MAX_PAYLOAD_SIZE, 0, &data_buffer_len); 558 if (rc != EOK) { 559 async_answer_0(callid, rc); 560 free(setup_packet); 561 return; 556 557 if (data_buffer_len > 0) { 558 rc = async_data_write_accept(&data_buffer, false, 559 1, USB_MAX_PAYLOAD_SIZE, 0, &data_buffer_len); 560 if (rc != EOK) { 561 async_answer_0(callid, rc); 562 free(setup_packet); 563 return; 564 } 562 565 } 563 566 … … 596 599 } 597 600 598 size_t data_len = DEV_IPC_GET_ARG3(*call);599 601 usb_target_t target = { 600 602 .address = DEV_IPC_GET_ARG1(*call), … … 606 608 void *setup_packet = NULL; 607 609 size_t setup_packet_len = 0; 610 size_t data_len = 0; 608 611 609 612 rc = async_data_write_accept(&setup_packet, false,
Note:
See TracChangeset
for help on using the changeset viewer.