[PATCH 0/1][SRU][B/B-OEM/C/D] Fix AMD IOMMU NULL dereference

Aaron Ma aaron.ma at canonical.com
Wed Mar 20 10:41:37 UTC 2019


BugLink: https://bugs.launchpad.net/bugs/1820990

[Impact]
When no acpi hid match the device, there will be a NULL dereference in
amd iommu.
It will make system hang.

[Fix]
Check NULL pointer before using it.

[Test]
Tested on several AMD platforms, bugs are fixed with this patch.

[Regression Potential]
Low, upstream fix, Verified on several platforms.
It should be safe.

Aaron Ma (1):
  iommu/amd: Fix NULL dereference bug in match_hid_uid

 drivers/iommu/amd_iommu.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

-- 
2.17.1




More information about the kernel-team mailing list