From: David Woodhouse Date: Wed, 2 Dec 2009 10:18:30 +0000 (+0000) Subject: intel-iommu: Fix oops with intel_iommu=igfx_off X-Git-Tag: v2.6.33-rc1~68^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44cd613c0e4cd93079ea2a93aa06649d8ca0830a;p=pandora-kernel.git intel-iommu: Fix oops with intel_iommu=igfx_off The hotplug notifier will call find_domain() to see if the device in question has been assigned an IOMMU domain. However, this should never be called for devices with a "dummy" domain, such as graphics devices when intel_iommu=igfx_off is set and the corresponding IOMMU isn't even initialised. If you do that, it'll oops as it dereferences the (-1) pointer. The notifier function should check iommu_no_mapping() for the device before doing anything else. Cc: stable@kernel.org Signed-off-by: David Woodhouse --- Reading git-diff-tree failed