diff options
| author | jmcneill <jmcneill@NetBSD.org> | 2008-10-26 19:13:16 +0000 |
|---|---|---|
| committer | jmcneill <jmcneill@NetBSD.org> | 2008-10-26 19:13:16 +0000 |
| commit | e143becdb6b93e70ddaa046c43a2b083bcf3186b (patch) | |
| tree | 984619f39c4f14b8ddaf45bc3c0b537b26fffada /sys/compat/linux | |
| parent | ebee56aef0d97542176e0fb5b6df1ccc791cad9b (diff) | |
linux_sys_get_robust_list: copyout the entire struct, not the size of the
pointer to it.
Diffstat (limited to 'sys/compat/linux')
| -rw-r--r-- | sys/compat/linux/common/linux_futex.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/compat/linux/common/linux_futex.c b/sys/compat/linux/common/linux_futex.c index 26ff0edcd2b..b026e3bf669 100644 --- a/sys/compat/linux/common/linux_futex.c +++ b/sys/compat/linux/common/linux_futex.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_futex.c,v 1.17 2008/10/26 16:38:22 christos Exp $ */ +/* $NetBSD: linux_futex.c,v 1.18 2008/10/26 19:13:16 jmcneill Exp $ */ /*- * Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved. @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(1, "$NetBSD: linux_futex.c,v 1.17 2008/10/26 16:38:22 christos Exp $"); +__KERNEL_RCSID(1, "$NetBSD: linux_futex.c,v 1.18 2008/10/26 19:13:16 jmcneill Exp $"); #include <sys/param.h> #include <sys/time.h> @@ -527,7 +527,8 @@ linux_sys_get_robust_list(struct lwp *l, error = copyout(&len, SCARG(uap, len), sizeof(size_t)); if (error) return error; - return copyout(head, SCARG(uap, head), sizeof(head)); + return copyout(head, SCARG(uap, head), + sizeof(struct linux_robust_list_head)); } static int |
