aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins
diff options
context:
space:
mode:
authorLu Baolu <[email protected]>2019-03-01 11:23:12 +0800
committerJoerg Roedel <[email protected]>2019-03-01 10:23:36 +0100
commitc56cba5daf45d2d091ef1cfe2f1d6a930446687b (patch)
tree47f66dd725c73e2032239bddf808e87c6bdaff6c /scripts/gcc-plugins
parent41b80db227993394f210f0eb705a326db5f605b6 (diff)
iommu/vt-d: Fix NULL pointer reference in intel_svm_bind_mm()
Intel IOMMU could be turned off with intel_iommu=off. If Intel IOMMU is off, the intel_iommu struct will not be initialized. When device drivers call intel_svm_bind_mm(), the NULL pointer reference will happen there. Add dmar_disabled check to avoid NULL pointer reference. Cc: Ashok Raj <[email protected]> Cc: Jacob Pan <[email protected]> Reported-by: Dave Jiang <[email protected]> Fixes: 2f26e0a9c9860 ("iommu/vt-d: Add basic SVM PASID support") Signed-off-by: Lu Baolu <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins')
0 files changed, 0 insertions, 0 deletions