risc-v/esp32c3: Invalidate CPU interrupt number after free
This commit is contained in:
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);
|
up_disable_irq(wdt->cpuint);
|
||||||
irq_detach(wdt->irq);
|
irq_detach(wdt->irq);
|
||||||
esp32c3_free_cpuint(wdt->periph);
|
esp32c3_free_cpuint(wdt->periph);
|
||||||
|
wdt->cpuint = -ENOMEM;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user