Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jun 2020 04:18:20 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r362363 - head/sys/vm
Message-ID:  <202006190418.05J4IK38033594@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006190418.05J4IK38033594>