diff --git a/drivers/usb/device/usb_dc_native_posix.c b/drivers/usb/device/usb_dc_native_posix.c index 2c3e23821bf..9d7f74c77f1 100644 --- a/drivers/usb/device/usb_dc_native_posix.c +++ b/drivers/usb/device/usb_dc_native_posix.c @@ -560,7 +560,7 @@ int handle_usb_data(struct usbip_header *hdr) ep_ctrl->cb(ep, USB_DC_EP_DATA_OUT); /* Send ACK reply */ - if (!usbip_send_common(ep, 0)) { + if (!usbip_send_common(ep, ep_ctrl->data_len)) { return -EIO; } } else {