Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm if you are going to dereference a variable, check th...
details: https://anonhg.NetBSD.org/src/rev/d42ecd7f29b5
branches: trunk
changeset: 771157:d42ecd7f29b5
user: christos <christos%NetBSD.org@localhost>
date: Sun Nov 13 02:10:40 2011 +0000
description:
if you are going to dereference a variable, check the variable itself, not
it cousin.
diffstat:
sys/uvm/uvm_meter.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r dea15cbb3c12 -r d42ecd7f29b5 sys/uvm/uvm_meter.c
--- a/sys/uvm/uvm_meter.c Sun Nov 13 00:06:54 2011 +0000
+++ b/sys/uvm/uvm_meter.c Sun Nov 13 02:10:40 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_meter.c,v 1.56 2011/02/02 15:25:27 chuck Exp $ */
+/* $NetBSD: uvm_meter.c,v 1.57 2011/11/13 02:10:40 christos Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_meter.c,v 1.56 2011/02/02 15:25:27 chuck Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_meter.c,v 1.57 2011/11/13 02:10:40 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -82,7 +82,7 @@
struct sysctlnode node;
node = *rnode;
- if (oldp)
+ if (oldlenp)
node.sysctl_size = min(*oldlenp, node.sysctl_size);
return (sysctl_lookup(SYSCTLFN_CALL(&node)));
Home |
Main Index |
Thread Index |
Old Index