summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwdfk-prog <[email protected]>2025-11-05 15:55:14 +0800
committerR b b666 <[email protected]>2025-11-08 11:52:25 +0800
commit44cf90a4ef25b4ae09151a9230bc14cd9f061c38 (patch)
tree52b43a438af72e27637a8c06d1b0e331c69239f2 /src
parent2c9257831ef1a3ccf085380c048aff12d024d285 (diff)
fix(can): Resolve potential race condition in message transmission
Setting the send status flag `sndchange` after calling the can->ops->sendmsg function could lead to a race condition if a transmission timeout occurs, resulting in incorrect state handling. This patch moves the operation of setting the `sndchange` flag to before the call to can->ops->sendmsg. This ensures that the mailbox's status is correctly marked as "sending" before the hardware begins transmission, making the driver's state management more robust and reliable, especially in handling exceptions like timeouts. Additionally, new macros for CAN filter modes have been added in dev_can.h.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions