]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/softlockup.c
check_hung_task(): unsigned sysctl_hung_task_warnings cannot be less than 0
[linux-2.6-omap-h63xx.git] / kernel / softlockup.c
index 3953e4aed733d32284f48ecfffa1fbff05e234c6..dc0b3be6b7d52cb98bd84d599bfbb7e7d85b1e85 100644 (file)
@@ -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--;