summaryrefslogtreecommitdiffstats
path: root/Documentation/DocBook
diff options
context:
space:
mode:
authorShawn Bohrer <shawn.bohrer@gmail.com>2009-12-07 03:30:44 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-10 03:59:52 +0100
commit2770f189b7a5582869c137e5617fb88cc0ad0fd3 (patch)
tree68f965895cb39593b06f7f3f712c0e37125a0636 /Documentation/DocBook
parentuse DMA_BIT_MASK instead of inline constant (diff)
downloadlinux-2770f189b7a5582869c137e5617fb88cc0ad0fd3.tar.xz
linux-2770f189b7a5582869c137e5617fb88cc0ad0fd3.zip
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 <shawn.bohrer@gmail.com> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/DocBook')
-rw-r--r--Documentation/DocBook/kernel-hacking.tmpl2
1 files changed, 1 insertions, 1 deletions
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)
</para>
<programlisting>
-if (signal_pending())
+if (signal_pending(current))
return -ERESTARTSYS;
</programlisting>