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>

authored by

Roel Kluin and committed by
Ingo Molnar
20195546 02d43b1d

+1 -1
+1 -1
kernel/softlockup.c
··· 188 if ((long)(now - t->last_switch_timestamp) < 189 sysctl_hung_task_timeout_secs) 190 return; 191 - if (sysctl_hung_task_warnings < 0) 192 return; 193 sysctl_hung_task_warnings--; 194
··· 188 if ((long)(now - t->last_switch_timestamp) < 189 sysctl_hung_task_timeout_secs) 190 return; 191 + if (!sysctl_hung_task_warnings) 192 return; 193 sysctl_hung_task_warnings--; 194