svn commit: r317248 - stable/11/sys/x86/iommu

Konstantin Belousov kib at FreeBSD.org
Fri Apr 21 10:11:10 UTC 2017


Author: kib
Date: Fri Apr 21 10:11:08 2017
New Revision: 317248
URL: https://svnweb.freebsd.org/changeset/base/317248

Log:
  MFC r316851:
  Correct calculation of the entry->free_down in the invariants-checking
  code.

Modified:
  stable/11/sys/x86/iommu/intel_gas.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/x86/iommu/intel_gas.c
==============================================================================
--- stable/11/sys/x86/iommu/intel_gas.c	Fri Apr 21 07:43:44 2017	(r317247)
+++ stable/11/sys/x86/iommu/intel_gas.c	Fri Apr 21 10:11:08 2017	(r317248)
@@ -198,7 +198,7 @@ dmar_gas_check_free(struct dmar_domain *
 			    l->free_down));
 		} else {
 			v = MAX(entry->free_after, l->free_down);
-			v = MAX(entry->free_down, r->free_down);
+			v = MAX(v, r->free_down);
 			MPASS(entry->free_down == v);
 		}
 	}


More information about the svn-src-stable mailing list