Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Sep 2018 15:32:46 +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: r338906 - head/sys/vm
Message-ID:  <201809241532.w8OFWkBO062078@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Mon Sep 24 15:32:46 2018
New Revision: 338906
URL: https://svnweb.freebsd.org/changeset/base/338906

Log:
  Ensure that "domain" is initialized when vm_ndomains == 1.
  
  Reported by:	alc
  Approved by:	re (gjb)

Modified:
  head/sys/vm/vm_kern.c

Modified: head/sys/vm/vm_kern.c
==============================================================================
--- head/sys/vm/vm_kern.c	Mon Sep 24 14:50:44 2018	(r338905)
+++ head/sys/vm/vm_kern.c	Mon Sep 24 15:32:46 2018	(r338906)
@@ -505,8 +505,10 @@ kmem_back(vm_object_t object, vm_offset_t addr, vm_siz
 			next = roundup2(addr + 1, KVA_QUANTUM);
 			if (next > end || next < start)
 				next = end;
-		} else
+		} else {
+			domain = 0;
 			next = end;
+		}
 		rv = kmem_back_domain(domain, object, addr, next - addr, flags);
 		if (rv != KERN_SUCCESS) {
 			kmem_unback(object, start, addr - start);



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