Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Dec 2016 11:42:10 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r309551 - head/sys/x86/iommu
Message-ID:  <201612051142.uB5BgA1W060978@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon Dec  5 11:42:09 2016
New Revision: 309551
URL: https://svnweb.freebsd.org/changeset/base/309551

Log:
  Release DMAR table after using it.
  
  Reported and tested by:	hps
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/x86/iommu/intel_drv.c

Modified: head/sys/x86/iommu/intel_drv.c
==============================================================================
--- head/sys/x86/iommu/intel_drv.c	Mon Dec  5 11:41:09 2016	(r309550)
+++ head/sys/x86/iommu/intel_drv.c	Mon Dec  5 11:42:09 2016	(r309551)
@@ -109,6 +109,7 @@ dmar_iterate_tbl(dmar_iter_t iter, void 
 		if (!iter(dmarh, arg))
 			break;
 	}
+	AcpiPutTable((ACPI_TABLE_HEADER *)dmartbl);
 }
 
 struct find_iter_args {
@@ -184,6 +185,7 @@ dmar_identify(driver_t *driver, device_t
 		    (unsigned)dmartbl->Flags,
 		    "\020\001INTR_REMAP\002X2APIC_OPT_OUT");
 	}
+	AcpiPutTable((ACPI_TABLE_HEADER *)dmartbl);
 
 	dmar_iterate_tbl(dmar_count_iter, NULL);
 	if (dmar_devcnt == 0)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612051142.uB5BgA1W060978>