Skip to contentSkip to conversation

Fix the return value of sys_set_tid_address()

PATCH New Pavel Emelyanov 1 participant 1 message Aug 17, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix the return value of sys_set_tid_address()

This call should return the virtual pid to the caller, just like the sys_getpid()/sys_gettid() do, no the global one.

Cc Sukadev Bhattiprolu <sukadev-r/[email protected]>
Cc Oleg Nesterov <[email protected]>

---

kernel/fork.c | 2 +-

1 files changed, 1 insertion(+), 1 deletion(-)
kernel/fork.c +0 -0
index 645c614..d7cff48 100644
@@ -938,7 +938,7 @@ asmlinkage long sys_set_tid_address(int {
	current->clear_child_tid = tidptr;

- return current->pid;
+ return task_pid_vnr(current);
}

static inline void rt_mutex_init_task(struct task_struct *p)