diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-10 18:15:26 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-10 18:15:26 -0600 |
commit | 01c5fb32b6c054caf5bb846a8d5f04808984bb14 (patch) | |
tree | cee9ca5d1423c8d8186cb2fe0ea16073867790b9 | |
parent | 34b28daf56d244bb8da374c99c2b2f3ea4ba175d (diff) | |
download | nuttx-01c5fb32b6c054caf5bb846a8d5f04808984bb14.tar.gz nuttx-01c5fb32b6c054caf5bb846a8d5f04808984bb14.tar.bz2 nuttx-01c5fb32b6c054caf5bb846a8d5f04808984bb14.zip |
Fix an important bug in the watchdog creation logic
-rw-r--r-- | nuttx/sched/wdog/wd_create.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/sched/wdog/wd_create.c b/nuttx/sched/wdog/wd_create.c index 459f0a68a..2c04724a4 100644 --- a/nuttx/sched/wdog/wd_create.c +++ b/nuttx/sched/wdog/wd_create.c @@ -107,7 +107,7 @@ WDOG_ID wd_create (void) * the head of the free list. */ - if (g_wdnfree > CONFIG_WDOG_INTRESERVE || !up_interrupt_context()) + if (g_wdnfree > CONFIG_WDOG_INTRESERVE || up_interrupt_context()) { /* Remove the watchdog timer from the free list and decrement the * count of free timers all with interrupts disabled. |