Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/netbsd32 wrong size passed to copyout



details:   https://anonhg.NetBSD.org/src/rev/55c1a8a9cf30
branches:  trunk
changeset: 1008178:55c1a8a9cf30
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat Mar 14 04:39:15 2020 +0000

description:
wrong size passed to copyout

diffstat:

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

diffs (27 lines):

diff -r e55dc8d89c36 -r 55c1a8a9cf30 sys/compat/netbsd32/netbsd32_ioctl.c
--- a/sys/compat/netbsd32/netbsd32_ioctl.c      Sat Mar 14 03:01:36 2020 +0000
+++ b/sys/compat/netbsd32/netbsd32_ioctl.c      Sat Mar 14 04:39:15 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_ioctl.c,v 1.109 2020/02/11 06:33:51 mlelstv Exp $     */
+/*     $NetBSD: netbsd32_ioctl.c,v 1.110 2020/03/14 04:39:15 maxv Exp $        */
 
 /*
  * Copyright (c) 1998, 2001 Matthew R. Green
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_ioctl.c,v 1.109 2020/02/11 06:33:51 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_ioctl.c,v 1.110 2020/03/14 04:39:15 maxv Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ntp.h"
@@ -1059,7 +1059,7 @@
        (*vec_ntp_adjtime1)(&ntv);
        netbsd32_from_timex(&ntv, &ntv32);
 
-       error = copyout(&ntv32, args->tp, sizeof(ntv));
+       error = copyout(&ntv32, args->tp, sizeof(ntv32));
        if (error == 0)
                args->retval = ntp_timestatus();
 



Home | Main Index | Thread Index | Old Index