xtensa/esp32s3: set cpuint to initial value after deallocate

This commit is contained in:
Kevin Zhou 2025-01-06 18:42:39 +08:00 committed by archer
parent ae26129e6e
commit 1bc2e1a175

View file

@ -774,6 +774,7 @@ static int32_t wdt_setisr(struct esp32s3_wdt_dev_s *dev, xcpt_t handler,
up_disable_irq(wdt->irq);
esp32s3_teardown_irq(wdt->cpu, wdt->periph, wdt->cpuint);
irq_detach(wdt->irq);
wdt->cpuint = -ENOMEM;
}
}