Skip to content

Commit f496b43

Browse files
committed
Merge branch 'bugfix/task_wdt_not_checking_ret' into 'master'
fix(esp_system): task wdt now checks the interrupt allocator return value Closes IDF-13478 See merge request espressif/esp-idf!40155
2 parents dce4ca7 + 20da6a9 commit f496b43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/esp_system/task_wdt/task_wdt_impl_timergroup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ esp_err_t esp_task_wdt_impl_timer_allocate(const esp_task_wdt_config_t *config,
106106
}
107107

108108
if (ret == ESP_OK) {
109-
esp_intr_alloc(TWDT_INTR_SOURCE, 0, callback, NULL, &ctx->intr_handle);
109+
ret = esp_intr_alloc(TWDT_INTR_SOURCE, 0, callback, NULL, &ctx->intr_handle);
110110
}
111111

112112
if (ret == ESP_OK) {

0 commit comments

Comments
 (0)