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;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to