svn commit: r332935 - stable/11/sys/vm
Mark Johnston
markj at FreeBSD.org
Tue Apr 24 14:35:40 UTC 2018
Author: markj
Date: Tue Apr 24 14:35:39 2018
New Revision: 332935
URL: https://svnweb.freebsd.org/changeset/base/332935
Log:
MFC r332658:
Ensure that m and skip_m belong to the same object.
Modified:
stable/11/sys/vm/vm_page.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/vm/vm_page.c
==============================================================================
--- stable/11/sys/vm/vm_page.c Tue Apr 24 14:02:46 2018 (r332934)
+++ stable/11/sys/vm/vm_page.c Tue Apr 24 14:35:39 2018 (r332935)
@@ -3733,6 +3733,8 @@ vm_page_ps_test(vm_page_t m, int flags, vm_page_t skip
int i, npages;
object = m->object;
+ if (skip_m != NULL && skip_m->object != object)
+ return (false);
VM_OBJECT_ASSERT_LOCKED(object);
npages = atop(pagesizes[m->psind]);
More information about the svn-src-stable
mailing list