nuttx/sched/wdog
Michal Lenc cdfe7b5a54 sched/wdog/wd_start.c: prevent accessing watch-dog lag if head is NULL
If statement in line 103 could acces wdactivelist.head->lag when head was
NULL which could result in hard fault. The statement was also redundant
as the same condition is checked in the while loop below. This change
remove the if statement to prevent hard fault to occur.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2021-09-06 09:29:21 -07:00
..
Make.defs sched/wdog: Don't dynamically allocate wdog_s 2020-08-11 12:28:55 -06:00
wd_cancel.c sched/wdog: Remove flags field from wdog_s to save memory 2021-07-01 19:27:10 -03:00
wd_gettime.c sched/wdog: Don't dynamically allocate wdog_s 2020-08-11 12:28:55 -06:00
wd_initialize.c sched/wdog: Don't dynamically allocate wdog_s 2020-08-11 12:28:55 -06:00
wd_recover.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
wd_start.c sched/wdog/wd_start.c: prevent accessing watch-dog lag if head is NULL 2021-09-06 09:29:21 -07:00
wdog.h sched/wdog: fix switch_context caused error in wd_start() 2021-08-27 16:59:20 +09:00