svn commit: r329637 - stable/11/sys/vm

Konstantin Belousov kib at FreeBSD.org
Tue Feb 20 10:34:16 UTC 2018


Author: kib
Date: Tue Feb 20 10:34:15 2018
New Revision: 329637
URL: https://svnweb.freebsd.org/changeset/base/329637

Log:
  MFC r329215:
  Do not leak rv->psind in some specific situations.

Modified:
  stable/11/sys/vm/vm_reserv.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/vm/vm_reserv.c
==============================================================================
--- stable/11/sys/vm/vm_reserv.c	Tue Feb 20 10:13:13 2018	(r329636)
+++ stable/11/sys/vm/vm_reserv.c	Tue Feb 20 10:34:15 2018	(r329637)
@@ -746,6 +746,7 @@ vm_reserv_break(vm_reserv_t rv, vm_page_t m)
 	    ("vm_reserv_break: reserv %p's inpartpopq is TRUE", rv));
 	LIST_REMOVE(rv, objq);
 	rv->object = NULL;
+	rv->pages->psind = 0;
 	if (m != NULL) {
 		/*
 		 * Since the reservation is being broken, there is no harm in


More information about the svn-src-all mailing list