stm32: protect TX buffer during CAN error frame generation.

This commit is contained in:
Carlos Sanchez
2023-01-09 16:01:19 +01:00
committed by Xiang Xiao
parent 587305723e
commit eb240e014c
+2
View File
@@ -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 */