]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - kernel/workqueue.c
Use helpers to obtain task pid in printks
[mirror_ubuntu-bionic-kernel.git] / kernel / workqueue.c
index d1916fea710842719333d2fba32c4680a780c9f7..52d5e7c9a8e6e82e68a0cb88ba0cdbad508eded5 100644 (file)
@@ -282,7 +282,7 @@ static void run_workqueue(struct cpu_workqueue_struct *cwq)
                        printk(KERN_ERR "BUG: workqueue leaked lock or atomic: "
                                        "%s/0x%08x/%d\n",
                                        current->comm, preempt_count(),
-                                       current->pid);
+                                       task_pid_nr(current));
                        printk(KERN_ERR "    last function: ");
                        print_symbol("%s\n", (unsigned long)f);
                        debug_show_held_locks(current);