diff options
| author | Andrew Morton <akpm@osdl.org> | 2003-12-29 05:47:12 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-12-29 05:47:12 -0800 |
| commit | 14209d06cdeff3e3497ecb2a720a6f11d393bad5 (patch) | |
| tree | ea610b0600853adfcaa0b2ccfa74839a45c64641 /kernel | |
| parent | 413393076d7b90e7862abc3bc74c8c81149e0714 (diff) | |
[PATCH] Minor bug fixes to the compat layer
From: Arun Sharma <arun.sharma@intel.com>
- Several instances where we were using pid_t instead of uid_t
- If the caller passed a NULL `oldact' pointer into sys_sigprocmask then
don't try to write the old sigmask there.
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/compat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/compat.c b/kernel/compat.c index 44d3ab9bc668..45a0bd4747f6 100644 --- a/kernel/compat.c +++ b/kernel/compat.c @@ -204,7 +204,8 @@ asmlinkage long compat_sys_sigprocmask(int how, compat_old_sigset_t *set, ret = sys_sigprocmask(how, set ? &s : NULL, oset ? &s : NULL); set_fs(old_fs); if (ret == 0) - ret = put_user(s, oset); + if (oset) + ret = put_user(s, oset); return ret; } |
