Date: Sun, 5 Sep 2004 22:32:51 GMT From: Julian Elischer <julian@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 61066 for review Message-ID: <200409052232.i85MWpOE048569@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=61066 Change 61066 by julian@julian_ref on 2004/09/05 22:32:50 Confirming IFC complete Affected files ... .. //depot/projects/nsched/sys/kern/vfs_mount.c#8 integrate Differences ... ==== //depot/projects/nsched/sys/kern/vfs_mount.c#8 (text+ko) ==== @@ -59,7 +59,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/kern/vfs_mount.c,v 1.138 2004/07/30 22:08:52 phk Exp $"); +__FBSDID("$FreeBSD: src/sys/kern/vfs_mount.c,v 1.139 2004/09/05 22:24:28 alfred Exp $"); #include <sys/param.h> #include <sys/conf.h> @@ -274,7 +274,7 @@ optlen = auio->uio_iov[i + 1].iov_len; opt->name = malloc(namelen, M_MOUNT, M_WAITOK); opt->value = NULL; - opt->len = optlen; + opt->len = 0; /* * Do this early, so jumps to "bad" will free the current @@ -308,6 +308,7 @@ goto bad; } if (optlen != 0) { + opt->len = optlen; opt->value = malloc(optlen, M_MOUNT, M_WAITOK); if (auio->uio_segflg == UIO_SYSSPACE) { bcopy(auio->uio_iov[i + 1].iov_base, opt->value,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409052232.i85MWpOE048569>
