risc-v/esp32c3: Invalidate CPU interrupt number after free

This commit is contained in:
Gustavo Henrique Nihei 2021-02-23 20:50:56 -03:00 committed by Abdelatif Guettouche
parent 41b805813f
commit 5c24c98880

View File

@ -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;
}
}