diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2009-12-02 10:18:30 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-18 14:05:57 -0800 |
commit | 020d1eecf345422d34bec8fb4a45299dcc0dcc3f (patch) | |
tree | 4d030e2bc03dcdb079ab3d607588942454d97e34 /drivers/serial/sunzilog.c | |
parent | 39035f9c09699eea2dd154d170919dcd41c6885d (diff) |
intel-iommu: Fix oops with intel_iommu=igfx_off
commit 44cd613c0e4cd93079ea2a93aa06649d8ca0830a upstream.
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.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/serial/sunzilog.c')
0 files changed, 0 insertions, 0 deletions