aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorJerry Snitselaar <[email protected]>2020-01-21 17:34:26 -0700
committerJoerg Roedel <[email protected]>2020-01-24 15:23:50 +0100
commitbf708cfb2f4811d1948a88c41ab96587e84ad344 (patch)
tree99cf8b28a883c1d690713298386af93bc158c88f /lib/mpi/mpi-cmp.c
parentdef9d2780727cec3313ed3522d0123158d87224d (diff)
iommu/vt-d: Call __dmar_remove_one_dev_info with valid pointer
It is possible for archdata.iommu to be set to DEFER_DEVICE_DOMAIN_INFO or DUMMY_DEVICE_DOMAIN_INFO so check for those values before calling __dmar_remove_one_dev_info. Without a check it can result in a null pointer dereference. This has been seen while booting a kdump kernel on an HP dl380 gen9. Cc: Joerg Roedel <[email protected]> Cc: Lu Baolu <[email protected]> Cc: David Woodhouse <[email protected]> Cc: [email protected] # 5.3+ Cc: [email protected] Fixes: ae23bfb68f28 ("iommu/vt-d: Detach domain before using a private one") Signed-off-by: Jerry Snitselaar <[email protected]> Acked-by: Lu Baolu <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions