Date: Sun, 9 Jul 2017 15:41:49 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r320843 - head/sys/vm Message-ID: <201707091541.v69FfnqD065636@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <shoesoft@gmx.net>, Jan Kokemueller <jan.kokemueller@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; } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707091541.v69FfnqD065636>