svn commit: r362363 - head/sys/vm

Mark Johnston markj at FreeBSD.org
Fri Jun 19 04:18:20 UTC 2020


Author: markj
Date: Fri Jun 19 04:18:20 2020
New Revision: 362363
URL: https://svnweb.freebsd.org/changeset/base/362363

Log:
  Restore a check unintentionally dropped in r362361.
  
  MFC with:	r362361

Modified:
  head/sys/vm/vm_map.c

Modified: head/sys/vm/vm_map.c
==============================================================================
--- head/sys/vm/vm_map.c	Fri Jun 19 04:09:35 2020	(r362362)
+++ head/sys/vm/vm_map.c	Fri Jun 19 04:18:20 2020	(r362363)
@@ -1616,7 +1616,7 @@ vm_map_insert(vm_map_t map, vm_object_t object, vm_oof
 	/*
 	 * Check that the start and end points are not bogus.
 	 */
-	if (!vm_map_range_valid(map, start, end))
+	if (start == end || !vm_map_range_valid(map, start, end))
 		return (KERN_INVALID_ADDRESS);
 
 	/*


More information about the svn-src-head mailing list