Subject: CVS commit: src/sys/kern
To: None <source-changes@NetBSD.org>
From: Manuel Bouyer <email@example.com>
Date: 03/15/2005 18:22:24
Module Name: src
Committed By: bouyer
Date: Tue Mar 15 18:22:24 UTC 2005
Fix off-by-one bug which would cause a region at the end of the extent
to be alloctated multiple times:
- we're allocating region of size 1
- there are holes in the extent, but all of size larger than 1
- there are 2 contigous allocations at the end of the extent, the last one
being of size 1.
While there fix a DIAGNOSTIC check: to check that a region is inside the extent
we need to check start and end, not only start.
To generate a diff of this commit:
cvs rdiff -r1.50 -r1.51 src/sys/kern/subr_extent.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.