]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Missing checks for pasid tables if allocation fails
authorLu Baolu <baolu.lu@linux.intel.com>
Fri, 3 Nov 2017 16:51:32 +0000 (10:51 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 3 Nov 2017 16:51:32 +0000 (10:51 -0600)
commita4eb0503fae797bd87e2bbda5d8416160b559ab8
tree2b162122b86deba8109f27e5ead56ac08fc36be4
parent8fe468de4fc9e8396980ba55d651cfb67226a3c1
iommu/vt-d: Missing checks for pasid tables if allocation fails

intel_svm_alloc_pasid_tables() might return an error but never be
checked by the callers. Later when intel_svm_bind_mm() is called,
there are no checks for valid pasid tables before enabling them.

Signed-off-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Liu, Yi L <yi.l.liu@intel.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/iommu/intel-svm.c