Re: [PATCH v2] usb: gadget: f_tcm: reject a short write data-out transfer

From: Yehyeong Lee

Date: Fri Nov 20 2026 - 10:05:15 EST


On Tue, Oct 13, 2026 at 09:58:54AM +0900, Yehyeong Lee wrote:
> usbg_data_write_cmpl() commits the WRITE buffer to the backend as soon as
> the OUT request completes successfully, looking only at req->status and
> never at req->actual. A host that declares an 8192-byte WRITE but ends the
> data-out after 4096 bytes still reaches target_execute_cmd() with the full
> length.

This is superseded by v8:
https://lore.kernel.org/all/20261118124005.2428068-1-yhlee@xxxxxxxxxxxxxxxxxx/

Best regards,
Yehyeong Lee