diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-12-10 23:21:17 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-12-10 23:21:17 +0000 |
commit | fca9e71b75835ff99883af73c24db4b533dd2bc1 (patch) | |
tree | 6f5344eac4852116f5a1fbc7bfca30210e1ac753 | |
parent | ed52c178ada873f52cd91c0f88099e2f0700c41d (diff) |
pass p->p_emul to stackgap_init(), not 0 to be consistent.
-rw-r--r-- | sys/compat/linux/linux_socket.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c index b51b61056ff..bd63d95e3d6 100644 --- a/sys/compat/linux/linux_socket.c +++ b/sys/compat/linux/linux_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_socket.c,v 1.27 2002/12/10 08:00:16 fgsch Exp $ */ +/* $OpenBSD: linux_socket.c,v 1.28 2002/12/10 23:21:16 fgsch Exp $ */ /* $NetBSD: linux_socket.c,v 1.14 1996/04/05 00:01:50 christos Exp $ */ /* @@ -246,7 +246,7 @@ linux_bind(p, v, retval) namlen = lba.namelen; if (lba.name) { struct sockaddr *sa; - caddr_t sg = stackgap_init(0); + caddr_t sg = stackgap_init(p->p_emul); error = linux_sa_get(p, &sg, &sa, lba.name, &namlen); if (error) @@ -273,7 +273,7 @@ linux_connect(p, v, retval) struct linux_connect_args lca; struct sys_connect_args bca; struct sockaddr *sa; - caddr_t sg = stackgap_init(0); + caddr_t sg = stackgap_init(p->p_emul); int namlen; int error; @@ -684,7 +684,7 @@ linux_sendto(p, v, retval) tolen = lsa.tolen; if (lsa.to) { struct sockaddr *sa; - caddr_t sg = stackgap_init(0); + caddr_t sg = stackgap_init(p->p_emul); if ((error = linux_sa_get(p, &sg, &sa, lsa.to, &tolen))) return (error); @@ -1056,7 +1056,7 @@ linux_sendmsg(p, v, retval) if (msg.msg_name) { struct sockaddr *sa; - caddr_t sg = stackgap_init(0); + caddr_t sg = stackgap_init(p->p_emul); nmsg = (struct msghdr *)stackgap_alloc(&sg, sizeof(struct msghdr)); |