]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - kernel/hung_task.c
Merge tag 'staging-4.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh...
[mirror_ubuntu-bionic-kernel.git] / kernel / hung_task.c
index 2b59c82cc3e1bb0813088cf5e22307d81230e13e..40c07e4fa116e064668bc6f36e438d67a4905326 100644 (file)
@@ -106,7 +106,8 @@ static void check_hung_task(struct task_struct *t, unsigned long timeout)
         * complain:
         */
        if (sysctl_hung_task_warnings) {
-               sysctl_hung_task_warnings--;
+               if (sysctl_hung_task_warnings > 0)
+                       sysctl_hung_task_warnings--;
                pr_err("INFO: task %s:%d blocked for more than %ld seconds.\n",
                        t->comm, t->pid, timeout);
                pr_err("      %s %s %.*s\n",