svn commit: r303437 - head/sys/dev/ntb

Alexander Motin mav at FreeBSD.org
Thu Jul 28 12:25:59 UTC 2016


Author: mav
Date: Thu Jul 28 12:25:58 2016
New Revision: 303437
URL: https://svnweb.freebsd.org/changeset/base/303437

Log:
  Fix r303429 build with invariants.

Modified:
  head/sys/dev/ntb/ntb.c

Modified: head/sys/dev/ntb/ntb.c
==============================================================================
--- head/sys/dev/ntb/ntb.c	Thu Jul 28 12:22:34 2016	(r303436)
+++ head/sys/dev/ntb/ntb.c	Thu Jul 28 12:25:58 2016	(r303437)
@@ -266,7 +266,7 @@ ntb_get_ctx(device_t ntb, const struct n
 {
 	struct ntb_child *nc = device_get_ivars(ntb);
 
-	KASSERT(nc->ntb_ctx != NULL && nc->ctx_ops != NULL, ("bogus"));
+	KASSERT(nc->ctx != NULL && nc->ctx_ops != NULL, ("bogus"));
 	if (ctx_ops != NULL)
 		*ctx_ops = nc->ctx_ops;
 	return (nc->ctx);


More information about the svn-src-all mailing list