Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/netbsd32 Fix reversed arguments in copyin(9), c.f...



details:   https://anonhg.NetBSD.org/src/rev/03f1fe63bc49
branches:  trunk
changeset: 339155:03f1fe63bc49
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jun 30 06:01:04 2015 +0000

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

diffstat:

 sys/compat/netbsd32/netbsd32_mqueue.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r bc0301a74a82 -r 03f1fe63bc49 sys/compat/netbsd32/netbsd32_mqueue.c
--- a/sys/compat/netbsd32/netbsd32_mqueue.c     Tue Jun 30 04:20:19 2015 +0000
+++ b/sys/compat/netbsd32/netbsd32_mqueue.c     Tue Jun 30 06:01:04 2015 +0000
@@ -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 @@
        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);



Home | Main Index | Thread Index | Old Index