summaryrefslogtreecommitdiff
path: root/lib/bitrev.c
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2009-12-02 10:18:30 +0000
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-12-08 10:03:06 +0000
commit44cd613c0e4cd93079ea2a93aa06649d8ca0830a (patch)
tree63eb3d5b97569d4db7fa3eb47201d77eaaccaf46 /lib/bitrev.c
parent5595b528b49a702c0428c0762bab60999648254c (diff)
downloadlinux-44cd613c0e4cd93079ea2a93aa06649d8ca0830a.tar.gz
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 <David.Woodhouse@intel.com>
Diffstat (limited to 'lib/bitrev.c')
0 files changed, 0 insertions, 0 deletions