Commit 201955463a5c1a70d3f70d1598b27e4c2c402642

Authored by Roel Kluin
Committed by Ingo Molnar
1 parent 02d43b1d13

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -188,7 +188,7 @@
188 188 if ((long)(now - t->last_switch_timestamp) <
189 189 sysctl_hung_task_timeout_secs)
190 190 return;
191   - if (sysctl_hung_task_warnings < 0)
  191 + if (!sysctl_hung_task_warnings)
192 192 return;
193 193 sysctl_hung_task_warnings--;
194 194