diff options
-rw-r--r-- | common/cyclic.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/cyclic.c b/common/cyclic.c index 75662d9f613..ec952a01ee1 100644 --- a/common/cyclic.c +++ b/common/cyclic.c @@ -43,6 +43,8 @@ static bool cyclic_is_registered(const struct cyclic_info *cyclic) void cyclic_register(struct cyclic_info *cyclic, cyclic_func_t func, uint64_t delay_us, const char *name) { + cyclic_unregister(cyclic); + memset(cyclic, 0, sizeof(*cyclic)); /* Store values in struct */ |