Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern fp->f_count is unsigned, don't check if it's less t...
details: https://anonhg.NetBSD.org/src/rev/65db9c28fb72
branches: trunk
changeset: 536870:65db9c28fb72
user: simonb <simonb%NetBSD.org@localhost>
date: Mon Sep 23 04:19:16 2002 +0000
description:
fp->f_count is unsigned, don't check if it's less than zero.
diffstat:
sys/kern/kern_descrip.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r eaa5028d5f3c -r 65db9c28fb72 sys/kern/kern_descrip.c
--- a/sys/kern/kern_descrip.c Mon Sep 23 04:19:05 2002 +0000
+++ b/sys/kern/kern_descrip.c Mon Sep 23 04:19:16 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_descrip.c,v 1.94 2002/09/06 13:18:43 gehenna Exp $ */
+/* $NetBSD: kern_descrip.c,v 1.95 2002/09/23 04:19:16 simonb Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.94 2002/09/06 13:18:43 gehenna Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.95 2002/09/23 04:19:16 simonb Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1075,8 +1075,6 @@
fp->f_usecount--;
return (0);
}
- if (fp->f_count < 0)
- panic("closef: count < 0");
}
/*
Home |
Main Index |
Thread Index |
Old Index