diff options
| author | Ingo Molnar <mingo@elte.hu> | 2002-08-13 00:36:37 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-08-13 00:36:37 -0700 |
| commit | 456f17cd1a2873b3e83cee85bcb30708037cb4e8 (patch) | |
| tree | 7cb07f07a669fbf8fac2943469a9256e1e154be7 /kernel/fork.c | |
| parent | aeb44e19d8021c69ff39657c8c6f6a89b66ba8b2 (diff) | |
[PATCH] user-vm-unlock-2.5.31-A2
This implements CLONE_VM_RELEASE, which lets the child release the 'user
VM' at mm_release() time.
Diffstat (limited to 'kernel/fork.c')
| -rw-r--r-- | kernel/fork.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 95baf7236910..3cb62cfcf4fd 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -367,6 +367,12 @@ void mm_release(void) tsk->vfork_done = NULL; complete(vfork_done); } + if (tsk->user_vm_lock) + /* + * We dont check the error code - if userspace has + * not set up a proper pointer then tough luck. + */ + put_user(0UL, tsk->user_vm_lock); } static int copy_mm(unsigned long clone_flags, struct task_struct * tsk) |
