Skip to content
Commit 9fa92c84 authored by Jiapeng Li's avatar Jiapeng Li Committed by jgl-meta
Browse files

canbus: isotp: fix single frame state machine stuck issue



it is too late to set ctx->state to ISOTP_TX_WAIT_FIN after send_sf
because send_state_machine could be called just between `send_sf` and
`ctx->state = ISOTP_TX_WAIT_FIN;`  in extremely case. like below:
```c
	ret = send_sf(ctx);
	-> send_state_machine (irq handler)
	ctx->state = ISOTP_TX_WAIT_FIN;
```
it will cause isotp_send never return.

Signed-off-by: default avatarJiapeng Li <mail@jiapeng.me>
(cherry picked from commit 2568ab66)
parent 70d6991e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment