[NETLINK]: Use tgid instead of pid for nlmsg_pid

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Herbert Xu 2005-11-22 14:41:50 -08:00 committed by David S. Miller
parent af2b4079ab
commit c27bd492fd

View File

@ -476,7 +476,7 @@ static int netlink_autobind(struct socket *sock)
struct hlist_head *head;
struct sock *osk;
struct hlist_node *node;
s32 pid = current->pid;
s32 pid = current->tgid;
int err;
static s32 rover = -4097;