Author: kib
Date: Sun Jul  9 15:41:49 2017
New Revision: 320843
URL: https://svnweb.freebsd.org/changeset/base/320843

Log:
  Fix loop termination in vm_map_find_min().
  
  Reported by:  antoine
  Tested by:    Stefan Ehmann <shoes...@gmx.net>,
         Jan Kokemueller <jan.kokemuel...@gmail.com>
  PR:   220493
  Sponsored by: The FreeBSD Foundation
  MFC after:    3 days

Modified:
  head/sys/vm/vm_map.c

Modified: head/sys/vm/vm_map.c
==============================================================================
--- head/sys/vm/vm_map.c        Sun Jul  9 15:19:28 2017        (r320842)
+++ head/sys/vm/vm_map.c        Sun Jul  9 15:41:49 2017        (r320843)
@@ -1571,7 +1571,7 @@ vm_map_find_min(vm_map_t map, vm_object_t object, vm_o
                    find_space, prot, max, cow);
                if (rv == KERN_SUCCESS || min_addr >= hint)
                        return (rv);
-               *addr = min_addr;
+               *addr = hint = min_addr;
        }
 }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to