Commit 5066e4a3 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull IOMMU fix from Joerg Roedel:
 "Fix a boot crash caused by the VT-d driver when booted with IOMMU
  disabled. This was introduced with the recent IOMMU changes"

* tag 'iommu-fix-v4.11-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
  iommu/vt-d: Fix crash on boot when DMAR is disabled
parents b4642c10 c37a0177
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -1108,8 +1108,10 @@ error:


static void free_iommu(struct intel_iommu *iommu)
static void free_iommu(struct intel_iommu *iommu)
{
{
	iommu_device_sysfs_remove(&iommu->iommu);
	if (intel_iommu_enabled) {
		iommu_device_unregister(&iommu->iommu);
		iommu_device_unregister(&iommu->iommu);
		iommu_device_sysfs_remove(&iommu->iommu);
	}


	if (iommu->irq) {
	if (iommu->irq) {
		if (iommu->pr_irq) {
		if (iommu->pr_irq) {