diff options
author | Raul E Rangel <rrangel@chromium.org> | 2020-05-11 19:33:36 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2020-05-13 12:14:41 +0300 |
commit | ea90228c7b2ae6646bb6381385229aabb6f14cd2 (patch) | |
tree | 78717e5d9f562a88acef0ae311f308bd55f7102a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | e461b8c991b9202b007ea2059d953e264240b0c9 (diff) | |
download | linux-ea90228c7b2ae6646bb6381385229aabb6f14cd2.tar.xz |
iommu/amd: Fix get_acpihid_device_id()
acpi_dev_hid_uid_match() expects a null pointer for UID if it doesn't
exist. The acpihid_map_entry contains a char buffer for holding the
UID. If no UID was provided in the IVRS table, this buffer will be
zeroed. If we pass in a null string, acpi_dev_hid_uid_match() will
return false because it will try and match an empty string to the ACPI
UID of the device.
Fixes: ae5e6c6439c3 ("iommu/amd: Switch to use acpi_dev_hid_uid_match()")
Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20200511103229.v2.1.I6f1b6f973ee6c8af1348611370c73a0ec0ea53f1@changeid
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions