svn commit: r355606 - stable/12/sys/vm

Mark Johnston markj at FreeBSD.org
Wed Dec 11 14:27:01 UTC 2019


Author: markj
Date: Wed Dec 11 14:27:00 2019
New Revision: 355606
URL: https://svnweb.freebsd.org/changeset/base/355606

Log:
  MFC r355399:
  Fix an off-by-one error in vm_map_pmap_enter().

Modified:
  stable/12/sys/vm/vm_map.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/vm/vm_map.c
==============================================================================
--- stable/12/sys/vm/vm_map.c	Wed Dec 11 06:50:55 2019	(r355605)
+++ stable/12/sys/vm/vm_map.c	Wed Dec 11 14:27:00 2019	(r355606)
@@ -2385,7 +2385,7 @@ vm_map_pmap_enter(vm_map_t map, vm_offset_t addr, vm_p
 
 	psize = atop(size);
 	if (psize + pindex > object->size) {
-		if (object->size < pindex) {
+		if (pindex >= object->size) {
 			VM_OBJECT_RUNLOCK(object);
 			return;
 		}


More information about the svn-src-stable mailing list