diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/fork.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index d577f3077e73..6d0ec09abe0c 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -26,6 +26,7 @@ #include <linux/mman.h> #include <linux/fs.h> #include <linux/security.h> +#include <linux/futex.h> #include <asm/pgtable.h> #include <asm/pgalloc.h> @@ -370,12 +371,14 @@ void mm_release(void) tsk->vfork_done = NULL; complete(vfork_done); } - if (tsk->user_tid) + if (tsk->user_tid) { /* * We dont check the error code - if userspace has * not set up a proper pointer then tough luck. */ put_user(0UL, tsk->user_tid); + sys_futex(tsk->user_tid, FUTEX_WAKE, 1, NULL); + } } static int copy_mm(unsigned long clone_flags, struct task_struct * tsk) |
