]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Fix NULL pointer dereference in prq_event_thread()
authorLu Baolu <baolu.lu@linux.intel.com>
Mon, 5 Nov 2018 02:18:58 +0000 (10:18 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 6 Nov 2018 15:46:24 +0000 (16:46 +0100)
commit48d12e22d9d9b7e20278d5297136b12a1c8c3895
treebbf7d843575cb67beb9b74818b6fd06638a189eb
parentf630c74755763954e46ada22cb887770a3c4fdd4
iommu/vt-d: Fix NULL pointer dereference in prq_event_thread()

When handling page request without pasid event, go to "no_pasid"
branch instead of "bad_req". Otherwise, a NULL pointer deference
will happen there.

Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: Sohil Mehta <sohil.mehta@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Fixes: 8c0bcc9b282dc 'iommu/vt-d: Implement page request handling'
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-svm.c