Module Name: src Committed By: pooka Date: Wed Sep 1 15:15:18 UTC 2010
Modified Files: src/sys/kern: kern_descrip.c Log Message: Actually, the comment probably meant "would be nice to KASSERT here, but can't". So turn it into a KASSERT now that it's possible. To generate a diff of this commit: cvs rdiff -u -r1.205 -r1.206 src/sys/kern/kern_descrip.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/kern/kern_descrip.c diff -u src/sys/kern/kern_descrip.c:1.205 src/sys/kern/kern_descrip.c:1.206 --- src/sys/kern/kern_descrip.c:1.205 Wed Sep 1 15:12:16 2010 +++ src/sys/kern/kern_descrip.c Wed Sep 1 15:15:18 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_descrip.c,v 1.205 2010/09/01 15:12:16 pooka Exp $ */ +/* $NetBSD: kern_descrip.c,v 1.206 2010/09/01 15:15:18 pooka Exp $ */ /*- * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. @@ -70,7 +70,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.205 2010/09/01 15:12:16 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.206 2010/09/01 15:15:18 pooka Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -1248,6 +1248,7 @@ if (__predict_true(fdp == NULL)) { fdp = pool_cache_get(filedesc_cache, PR_WAITOK); } else { + KASSERT(fdp == &filedesc0); filedesc_ctor(NULL, fdp, PR_WAITOK); }