diff options
Diffstat (limited to 'common/timer.c')
-rw-r--r-- | common/timer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/timer.c b/common/timer.c index ccf77eb9be..700eb9b509 100644 --- a/common/timer.c +++ b/common/timer.c @@ -365,6 +365,9 @@ static int command_wait(int argc, char **argv) if (*e) return EC_ERROR_PARAM1; + if (i < 0) + return EC_ERROR_PARAM1; + /* * Reload the watchdog so that issuing multiple small waitms commands * quickly one after the other will not cause a reset. |