diff options
| author | 2009-09-05 10:28:41 +0000 | |
|---|---|---|
| committer | 2009-09-05 10:28:41 +0000 | |
| commit | caacdd68475f2e4f40e0be10a0a64b0698de8adc (patch) | |
| tree | 7a7b3c4e1b29eddea708f1e7d9c668e68a839815 /sys/compat/linux/linux_misc.c | |
| parent | Make sure ehci_open() invokes ehci_device_setintr() at splusb; found with (diff) | |
| download | wireguard-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_misc.c')
| -rw-r--r-- | sys/compat/linux/linux_misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index ff7c5cc63a9..8c68145736a 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_misc.c,v 1.62 2008/06/26 05:42:14 ray Exp $ */ +/* $OpenBSD: linux_misc.c,v 1.63 2009/09/05 10:28:43 miod Exp $ */ /* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */ /*- @@ -153,7 +153,7 @@ linux_sys_wait4(p, v, retval) if (SCARG(uap, status) != NULL) { sg = stackgap_init(p->p_emul); - status = (int *) stackgap_alloc(&sg, sizeof status); + status = (int *) stackgap_alloc(&sg, sizeof *status); } else status = NULL; |
