Skip to content

Commit

Permalink
check_hung_task(): unsigned sysctl_hung_task_warnings cannot be less …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Roel Kluin authored and Ingo Molnar committed Dec 3, 2008
1 parent 02d43b1 commit 2019554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/softlockup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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--;

Expand Down

0 comments on commit 2019554

Please sign in to comment.