Skip to content

Commit

Permalink
stm32: protect TX buffer during CAN error frame generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
csanchezdll authored and xiaoxiang781216 committed Jan 10, 2023
1 parent 5873057 commit eb240e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/src/stm32/stm32_fdcan_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -2122,7 +2122,9 @@ static void fdcan_error_work(void *arg)

/* Report errors */

net_lock();
fdcan_error(priv, pending & FDCAN_ANYERR_INTS);
net_unlock();

/* Re-enable ERROR interrupts */

Expand Down

0 comments on commit eb240e0

Please sign in to comment.