Module Name:    src
Committed By:   matt
Date:           Fri Apr 13 00:34:54 UTC 2012

Modified Files:
        src/sys/uvm [matt-nb5-mips64]: uvm_pdaemon.c

Log Message:
Make sure color passed to uvm_reclaimable is valid.


To generate a diff of this commit:
cvs rdiff -u -r1.93.4.2.4.10 -r1.93.4.2.4.11 src/sys/uvm/uvm_pdaemon.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_pdaemon.c
diff -u src/sys/uvm/uvm_pdaemon.c:1.93.4.2.4.10 src/sys/uvm/uvm_pdaemon.c:1.93.4.2.4.11
--- src/sys/uvm/uvm_pdaemon.c:1.93.4.2.4.10	Thu Apr 12 19:41:57 2012
+++ src/sys/uvm/uvm_pdaemon.c	Fri Apr 13 00:34:54 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_pdaemon.c,v 1.93.4.2.4.10 2012/04/12 19:41:57 matt Exp $	*/
+/*	$NetBSD: uvm_pdaemon.c,v 1.93.4.2.4.11 2012/04/13 00:34:54 matt Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_pdaemon.c,v 1.93.4.2.4.10 2012/04/12 19:41:57 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pdaemon.c,v 1.93.4.2.4.11 2012/04/13 00:34:54 matt Exp $");
 
 #include "opt_uvmhist.h"
 #include "opt_readahead.h"
@@ -1236,6 +1236,8 @@ uvm_reclaimable(u_int color, bool kmem_p
 	u_int filepages, npages;
 	u_int active, inactive;
 
+	KASSERT(color < uvmexp.ncolors);
+
 	/*
 	 * if swap is not full, no problem.
 	 */

Reply via email to