Module Name:    src
Committed By:   martin
Date:           Tue Jun 30 06:01:04 UTC 2015

Modified Files:
        src/sys/compat/netbsd32: netbsd32_mqueue.c

Log Message:
Fix reversed arguments in copyin(9), c.f. kern/sys_mqueue.c rev 1.39.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/compat/netbsd32/netbsd32_mqueue.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/netbsd32/netbsd32_mqueue.c
diff -u src/sys/compat/netbsd32/netbsd32_mqueue.c:1.3 src/sys/compat/netbsd32/netbsd32_mqueue.c:1.4
--- src/sys/compat/netbsd32/netbsd32_mqueue.c:1.3	Sun Jun 21 08:47:15 2015
+++ src/sys/compat/netbsd32/netbsd32_mqueue.c	Tue Jun 30 06:01:04 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: netbsd32_mqueue.c,v 1.3 2015/06/21 08:47:15 martin Exp $	*/
+/*	$NetBSD: netbsd32_mqueue.c,v 1.4 2015/06/30 06:01:04 martin Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_mqueue.c,v 1.3 2015/06/21 08:47:15 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_mqueue.c,v 1.4 2015/06/30 06:01:04 martin Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -62,7 +62,7 @@ netbsd32_mq_open(struct lwp *l, const st
 	int error;
 
 	if ((SCARG(uap, oflag) & O_CREAT) && (SCARG_P32(uap,attr) != NULL)) {
-		error = copyin(&attr32, SCARG_P32(uap,attr), sizeof(attr32));
+		error = copyin(SCARG_P32(uap,attr), &attr32, sizeof(attr32));
 		if (error)
 			return error;
 		netbsd32_to_mq_attr(&attr32, &a);

Reply via email to