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/e8a19aae4a1f
branches:  trunk
changeset: 973338:e8a19aae4a1f
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 76d586c0599e -r e8a19aae4a1f 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