git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/syscall: Clear return values when no stack
[sfrench/cifs-2.6.git]
/
lib
/
syscall.c
diff --git
a/lib/syscall.c
b/lib/syscall.c
index 17d5ff5fa6a388c4dc947a47615608bca79b2c40..2c6cd1b5c3ea86668bc73196c4aa980c724ad34c 100644
(file)
--- a/
lib/syscall.c
+++ b/
lib/syscall.c
@@
-12,6
+12,7
@@
static int collect_syscall(struct task_struct *target, long *callno,
if (!try_get_task_stack(target)) {
/* Task has no stack, so the task isn't in a syscall. */
+ *sp = *pc = 0;
*callno = -1;
return 0;
}