Subject: CVS commit: src/sys/kern
To: None <source-changes@NetBSD.org>
From: Quentin Garnier <cube@netbsd.org>
List: source-changes
Date: 01/14/2005 00:25:12
Module Name: src
Committed By: cube
Date: Fri Jan 14 00:25:12 UTC 2005
Modified Files:
src/sys/kern: kern_descrip.c
Log Message:
As fd_lastfile might be negative, we can't use the (u_int) cast trick to
compare fd and fdp->fd_lastfile in fdrelease(), so change the test to a
more explicit one. Spotted by Matt Thomas.
Should fix the panic reported by Matthias Scheler.
To generate a diff of this commit:
cvs rdiff -r1.128 -r1.129 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.