summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_socket.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2009-09-05 10:28:41 +0000
committermiod <miod@openbsd.org>2009-09-05 10:28:41 +0000
commitcaacdd68475f2e4f40e0be10a0a64b0698de8adc (patch)
tree7a7b3c4e1b29eddea708f1e7d9c668e68a839815 /sys/compat/linux/linux_socket.c
parentMake sure ehci_open() invokes ehci_device_setintr() at splusb; found with (diff)
downloadwireguard-openbsd-caacdd68475f2e4f40e0be10a0a64b0698de8adc.tar.xz
wireguard-openbsd-caacdd68475f2e4f40e0be10a0a64b0698de8adc.zip
Fix various cases of stackgap_alloc() size arguments not being computed
correctly, usually yielding the right value on 32 bit machines because sizeof int == sizeof pointer.
Diffstat (limited to 'sys/compat/linux/linux_socket.c')
-rw-r--r--sys/compat/linux/linux_socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
index 0bb32291d9d..861fc69853c 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.38 2009/02/19 19:04:34 deraadt Exp $ */
+/* $OpenBSD: linux_socket.c,v 1.39 2009/09/05 10:28:43 miod Exp $ */
/* $NetBSD: linux_socket.c,v 1.14 1996/04/05 00:01:50 christos Exp $ */
/*
@@ -312,7 +312,7 @@ linux_connect(p, v, retval)
#endif
status = stackgap_alloc(&sg, sizeof stat);
- statusl = stackgap_alloc(&sg, sizeof statusl);
+ statusl = stackgap_alloc(&sg, sizeof statl);
if ((error = copyout(&statl, statusl, sizeof statl)))
return error;