Date: Mon, 3 Sep 2007 21:47:13 GMT From: "Constantine A. Murenin" <cnst@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 126022 for review Message-ID: <200709032147.l83LlDKc039622@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=126022 Change 126022 by cnst@dale on 2007/09/03 21:46:21 integrate my patch from CVS, which fixes a 12-year-old bug in kern_sensors.c For details, see: http://lists.freebsd.org/pipermail/cvs-src/2007-September/081597.html http://lists.freebsd.org/pipermail/cvs-src/2007-September/081603.html Affected files ... .. //depot/projects/soc2007/cnst-sensors/sys.kern/kern_sysctl.c#10 integrate Differences ... ==== //depot/projects/soc2007/cnst-sensors/sys.kern/kern_sysctl.c#10 (text+ko) ==== @@ -36,7 +36,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/kern/kern_sysctl.c,v 1.176 2007/06/12 00:11:59 rwatson Exp $"); +__FBSDID("$FreeBSD: src/sys/kern/kern_sysctl.c,v 1.177 2007/09/02 09:59:33 rwatson Exp $"); #include "opt_compat.h" #include "opt_mac.h" @@ -1377,7 +1377,7 @@ } if (new != NULL) { - if (!useracc(new, req.newlen, VM_PROT_READ)) + if (!useracc(new, newlen, VM_PROT_READ)) return (EFAULT); req.newlen = newlen; req.newptr = new;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709032147.l83LlDKc039622>