On Thu, Nov 12, 2026 at 06:49:06PM +0100, Tommaso Califano wrote: > When SendObjectInfo fails its checks, usb_mtp_command() queues an error > response and then falls through. It still allocates s->data_out. The > data phase is then dropped because a result is pending, so s->data_out > is never released.
The guest cannot read that error on master: while s->data_out is set, usb_mtp_handle_data() stalls every BULK IN, and the next command with it. With this patch the response carries the error code and the next command works. Reviewed-by: Junjie Cao <[email protected]> Tested-by: Junjie Cao <[email protected]>
