mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
netlink: use the appropriate namespace pid
This was included in OpenVZ kernels but wasn't integrated upstream. >From git://git.openvz.org/pub/linux-2.6.24-openvz: commit 5c69402f18adf7276352e051ece2cf31feefab02 Author: Alexey Dobriyan <[email protected]> Date: Mon Dec 24 14:37:45 2007 +0300 netlink: fixup ->tgid to work in multiple PID namespaces Signed-off-by: Tom Goff <[email protected]> Acked-by: Alexey Dobriyan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
5c58c47a4f
commit
66aa4a55fe
1 changed files with 1 additions and 1 deletions
|
|
@ -545,7 +545,7 @@ static int netlink_autobind(struct socket *sock)
|
|||
struct hlist_head *head;
|
||||
struct sock *osk;
|
||||
struct hlist_node *node;
|
||||
s32 pid = current->tgid;
|
||||
s32 pid = task_tgid_vnr(current);
|
||||
int err;
|
||||
static s32 rover = -4097;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue