Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/kern Pull up revision 1.36 (requested by he):
details: https://anonhg.NetBSD.org/src/rev/21c3ed7418a4
branches: netbsd-1-5
changeset: 491876:21c3ed7418a4
user: he <he%NetBSD.org@localhost>
date: Sun Jun 10 18:56:03 2001 +0000
description:
Pull up revision 1.36 (requested by he):
Fix calculation of whether we overflow the end of the extent.
Fixes PR#13075.
diffstat:
sys/kern/subr_extent.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6d46be4e61c4 -r 21c3ed7418a4 sys/kern/subr_extent.c
--- a/sys/kern/subr_extent.c Sun Jun 10 18:47:42 2001 +0000
+++ b/sys/kern/subr_extent.c Sun Jun 10 18:56:03 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_extent.c,v 1.32.2.1 2000/06/27 21:54:03 thorpej Exp $ */
+/* $NetBSD: subr_extent.c,v 1.32.2.2 2001/06/10 18:56:03 he Exp $ */
/*-
* Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
@@ -695,7 +695,7 @@
* overflows, then the request
* can't fit.
*/
- if (dontcross > ex->ex_end ||
+ if (newstart + size - 1 > ex->ex_end ||
dontcross < newstart)
goto fail;
}
@@ -789,7 +789,7 @@
* overflows, then the request
* can't fit.
*/
- if (dontcross > ex->ex_end ||
+ if (newstart + size - 1 > ex->ex_end ||
dontcross < newstart)
goto fail;
}
Home |
Main Index |
Thread Index |
Old Index