From e143becdb6b93e70ddaa046c43a2b083bcf3186b Mon Sep 17 00:00:00 2001 From: jmcneill Date: Sun, 26 Oct 2008 19:13:16 +0000 Subject: [PATCH] linux_sys_get_robust_list: copyout the entire struct, not the size of the pointer to it. --- sys/compat/linux/common/linux_futex.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/compat/linux/common/linux_futex.c b/sys/compat/linux/common/linux_futex.c index 26ff0edcd2b1..b026e3bf669f 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 -__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 #include @@ -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