mirror of
https://github.com/apache/nuttx.git
synced 2026-09-12 05:30:20 +00:00
stm32: protect TX buffer during CAN error frame generation.
This commit is contained in:
parent
587305723e
commit
eb240e014c
1 changed files with 2 additions and 0 deletions
|
|
@ -2122,7 +2122,9 @@ static void fdcan_error_work(void *arg)
|
||||||
|
|
||||||
/* Report errors */
|
/* Report errors */
|
||||||
|
|
||||||
|
net_lock();
|
||||||
fdcan_error(priv, pending & FDCAN_ANYERR_INTS);
|
fdcan_error(priv, pending & FDCAN_ANYERR_INTS);
|
||||||
|
net_unlock();
|
||||||
|
|
||||||
/* Re-enable ERROR interrupts */
|
/* Re-enable ERROR interrupts */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue