Skip to content

Commit 1bc2e1a

Browse files
Kevin-Zhou11anchao
authored andcommitted
xtensa/esp32s3: set cpuint to initial value after deallocate
1 parent ae26129 commit 1bc2e1a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/xtensa/src/esp32s3/esp32s3_wdt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,7 @@ static int32_t wdt_setisr(struct esp32s3_wdt_dev_s *dev, xcpt_t handler,
774774
up_disable_irq(wdt->irq);
775775
esp32s3_teardown_irq(wdt->cpu, wdt->periph, wdt->cpuint);
776776
irq_detach(wdt->irq);
777+
wdt->cpuint = -ENOMEM;
777778
}
778779
}
779780

0 commit comments

Comments
 (0)