summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_socket.c
diff options
context:
space:
mode:
authornjoly <njoly@NetBSD.org>2009-06-16 22:56:49 +0000
committernjoly <njoly@NetBSD.org>2009-06-16 22:56:49 +0000
commit83618982c2c3340d1aa26b03643c2bc412227b35 (patch)
treedc7fac08d6f005ea16f60bac87254b7b36150a22 /sys/compat/linux/common/linux_socket.c
parentfb049440642aa4315879a6cf9ed1a47062fb63eb (diff)
For linux cmsg header copyout, use the linux structure size, not the
native one.
Diffstat (limited to 'sys/compat/linux/common/linux_socket.c')
-rw-r--r--sys/compat/linux/common/linux_socket.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/common/linux_socket.c b/sys/compat/linux/common/linux_socket.c
index 9c119b106ba..120b3578ab6 100644
--- a/sys/compat/linux/common/linux_socket.c
+++ b/sys/compat/linux/common/linux_socket.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_socket.c,v 1.101 2009/06/16 15:56:10 njoly Exp $ */
+/* $NetBSD: linux_socket.c,v 1.102 2009/06/16 22:56:49 njoly Exp $ */
/*-
* Copyright (c) 1995, 1998, 2008 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.101 2009/06/16 15:56:10 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.102 2009/06/16 22:56:49 njoly Exp $");
#if defined(_KERNEL_OPT)
#include "opt_inet.h"
@@ -658,7 +658,7 @@ linux_copyout_msg_control(struct lwp *l, struct msghdr *mp, struct mbuf *control
}
/* There can be padding between the header and data... */
- error = copyout(&linux_cmsg, q, sizeof *cmsg);
+ error = copyout(&linux_cmsg, q, sizeof linux_cmsg);
if (error != 0) {
error = copyout(CCMSG_DATA(cmsg), q + sizeof linux_cmsg,
dlen);