mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 07:46:16 +08:00
risc-v/esp32c3: Invalidate CPU interrupt number after free
This commit is contained in:
committed by
Abdelatif Guettouche
parent
41b805813f
commit
5c24c98880
@@ -668,6 +668,7 @@ static int32_t esp32c3_wdt_setisr(struct esp32c3_wdt_dev_s *dev,
|
||||
up_disable_irq(wdt->cpuint);
|
||||
irq_detach(wdt->irq);
|
||||
esp32c3_free_cpuint(wdt->periph);
|
||||
wdt->cpuint = -ENOMEM;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user