svn commit: r308360 - stable/11/sys/vm
Konstantin Belousov
kib at FreeBSD.org
Sun Nov 6 12:45:20 UTC 2016
Author: kib
Date: Sun Nov 6 12:45:19 2016
New Revision: 308360
URL: https://svnweb.freebsd.org/changeset/base/308360
Log:
MFC r308108:
Split long line instead of unindenting it. Add KASSERT() verifying
that a device object with the same handle has the same ops vector.
Modified:
stable/11/sys/vm/device_pager.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/vm/device_pager.c
==============================================================================
--- stable/11/sys/vm/device_pager.c Sun Nov 6 05:57:44 2016 (r308359)
+++ stable/11/sys/vm/device_pager.c Sun Nov 6 12:45:19 2016 (r308360)
@@ -169,7 +169,10 @@ cdev_pager_allocate(void *handle, enum o
if (pindex > object->size)
object->size = pindex;
KASSERT(object->type == tp,
- ("Inconsistent device pager type %p %d", object, tp));
+ ("Inconsistent device pager type %p %d",
+ object, tp));
+ KASSERT(object->un_pager.devp.ops == ops,
+ ("Inconsistent devops %p %p", object, ops));
} else {
object = object1;
object1 = NULL;
More information about the svn-src-stable
mailing list