mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Fix incorrect assertion that caused panic when periodic-only timers used.
This commit is contained in:
parent
3c2a957d2d
commit
ca9feb490c
1 changed files with 1 additions and 1 deletions
|
|
@ -168,7 +168,7 @@ et_start(struct eventtimer *et, sbintime_t first, sbintime_t period)
|
|||
KASSERT(period >= 0, ("et_start: negative period"));
|
||||
KASSERT((et->et_flags & ET_FLAGS_PERIODIC) || period == 0,
|
||||
("et_start: period specified for oneshot-only timer"));
|
||||
KASSERT((et->et_flags & ET_FLAGS_ONESHOT) && period == 0,
|
||||
KASSERT((et->et_flags & ET_FLAGS_ONESHOT) || period != 0,
|
||||
("et_start: period not specified for periodic-only timer"));
|
||||
if (period != 0) {
|
||||
if (period < et->et_min_period)
|
||||
|
|
|
|||
Loading…
Reference in a new issue