Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/linux/common Allocate the right size for the nati...



details:   https://anonhg.NetBSD.org/src/rev/1ea0862dc1fb
branches:  trunk
changeset: 524997:1ea0862dc1fb
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Wed Apr 03 10:17:01 2002 +0000

description:
Allocate the right size for the native gid_t array in setgroups16.

diffstat:

 sys/compat/linux/common/linux_misc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 33c46854ae5a -r 1ea0862dc1fb sys/compat/linux/common/linux_misc.c
--- a/sys/compat/linux/common/linux_misc.c      Wed Apr 03 09:45:22 2002 +0000
+++ b/sys/compat/linux/common/linux_misc.c      Wed Apr 03 10:17:01 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_misc.c,v 1.105 2002/03/31 22:22:47 christos Exp $        */
+/*     $NetBSD: linux_misc.c,v 1.106 2002/04/03 10:17:01 fvdl Exp $    */
 
 /*-
  * Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.105 2002/03/31 22:22:47 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.106 2002/04/03 10:17:01 fvdl Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1115,7 +1115,7 @@
        sg = stackgap_init(p, 0);
        bset = stackgap_alloc(p, &sg, n * sizeof (gid_t));
        lset = malloc(n * sizeof (linux_gid_t), M_TEMP, M_WAITOK);
-       kbset = malloc(n * sizeof (linux_gid_t), M_TEMP, M_WAITOK);
+       kbset = malloc(n * sizeof (gid_t), M_TEMP, M_WAITOK);
        if (lset == NULL || bset == NULL)
                return ENOMEM;
        error = copyin(SCARG(uap, gidset), lset, n * sizeof (linux_gid_t));



Home | Main Index | Thread Index | Old Index