Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/sys Ignore the supplied size, and always use the ...



details:   https://anonhg.NetBSD.org/src/rev/d6f7c13954a4
branches:  trunk
changeset: 935208:d6f7c13954a4
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jun 27 15:49:30 2020 +0000

description:
Ignore the supplied size, and always use the argument size that we know.
Found by maxv@

diffstat:

 sys/compat/sys/mount.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 14d7d650fdb1 -r d6f7c13954a4 sys/compat/sys/mount.h
--- a/sys/compat/sys/mount.h    Sat Jun 27 14:34:45 2020 +0000
+++ b/sys/compat/sys/mount.h    Sat Jun 27 15:49:30 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mount.h,v 1.12 2020/06/27 07:00:43 maxv Exp $  */
+/*     $NetBSD: mount.h,v 1.13 2020/06/27 15:49:30 christos Exp $      */
 
 /*
  * Copyright (c) 1989, 1991, 1993
@@ -141,7 +141,7 @@
        int error;
 
        statvfs_to_statfs12(vs, s12);
-       error = copyout(s12, vs12, l);
+       error = copyout(s12, vs12, sizeof(*s12));
        STATVFSBUF_PUT(s12);
 
        return error;



Home | Main Index | Thread Index | Old Index