Skip to content
Commit 5e6d1183 authored by Sylvio Alves's avatar Sylvio Alves Committed by Anas Nashif
Browse files

drivers: intc: esp32: fix race in critical section locking



Replace global lock variable with function-local storage for irq_lock()
state. This fixes a race condition when multiple access enter or exit
the critical section at the same time. Now each lock/unlock pair uses
its own key, making interrupt safe.

Signed-off-by: default avatarSylvio Alves <sylvio.alves@espressif.com>
parent 94e0e5ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment