mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-11-08 20:45:59 +03:00
host_communication: set rctx->tot_len after receiving USB transfer
This commit is contained in:
1 parent
372f4cc7ba
commit
250cd2c062
1 file changed
+1
@@ -86,6 +86,7 @@ static void usb_read_cb(uint8_t *arg, uint8_t status, uint32_t transferred,
|
||||
req_ctx_put(rctx);
|
||||
return;
|
||||
}
|
||||
rctx->tot_len = transferred;
|
||||
req_ctx_set_state(rctx, RCTX_S_MAIN_PROCESSING);
|
||||
llist_add_tail(&rctx->list, queue);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user