From: Shawn Bohrer Date: Mon, 7 Dec 2009 02:30:44 +0000 (-0800) Subject: docbook: fix signal_pending() argument X-Git-Tag: Ubuntu-5.2.0-15.16~26986 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=2770f189b7a5582869c137e5617fb88cc0ad0fd3;p=mirror_ubuntu-eoan-kernel.git docbook: fix signal_pending() argument Since signal_pending() takes a task_struct pointer as an argument, update the example to pass in 'current'. Signed-off-by: Shawn Bohrer Signed-off-by: Randy Dunlap Signed-off-by: Linus Torvalds --- diff --git a/Documentation/DocBook/kernel-hacking.tmpl b/Documentation/DocBook/kernel-hacking.tmpl index 992e67e6be7f..7b3f49363413 100644 --- a/Documentation/DocBook/kernel-hacking.tmpl +++ b/Documentation/DocBook/kernel-hacking.tmpl @@ -352,7 +352,7 @@ asmlinkage long sys_mycall(int arg) -if (signal_pending()) +if (signal_pending(current)) return -ERESTARTSYS;