Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2018 16:19:48 +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: r334057 - head/sys/vm
Message-ID:  <201805221619.w4MGJmlE093283@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Tue May 22 16:19:48 2018
New Revision: 334057
URL: https://svnweb.freebsd.org/changeset/base/334057

Log:
  Ensure that "m" is initialized in vm_page_alloc_freelist_domain().
  
  While here, remove a superfluous comment.
  
  Coverity CID:	1383559
  MFC after:	3 days

Modified:
  head/sys/vm/vm_page.c

Modified: head/sys/vm/vm_page.c
==============================================================================
--- head/sys/vm/vm_page.c	Tue May 22 16:03:41 2018	(r334056)
+++ head/sys/vm/vm_page.c	Tue May 22 16:19:48 2018	(r334057)
@@ -2191,9 +2191,7 @@ vm_page_alloc_freelist_domain(int domain, int freelist
 	vm_page_t m;
 	u_int flags;
 
-	/*
-	 * Do not allocate reserved pages unless the req has asked for it.
-	 */
+	m = NULL;
 	vmd = VM_DOMAIN(domain);
 again:
 	if (vm_domain_allocate(vmd, req, 1)) {



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