mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
check_hung_task(): unsigned sysctl_hung_task_warnings cannot be less than 0
Impact: fix warnings-limit cutoff check for debug feature unsigned sysctl_hung_task_warnings cannot be less than 0 Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
02d43b1d13
commit
201955463a
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ static void check_hung_task(struct task_struct *t, unsigned long now)
|
|||
if ((long)(now - t->last_switch_timestamp) <
|
||||
sysctl_hung_task_timeout_secs)
|
||||
return;
|
||||
if (sysctl_hung_task_warnings < 0)
|
||||
if (!sysctl_hung_task_warnings)
|
||||
return;
|
||||
sysctl_hung_task_warnings--;
|
||||
|
||||
|
|
Loading…
Reference in a new issue