Re: [PATCH] iommu/amd: Fix get_acpihid_device_id

2020-05-09 Thread Andy Shevchenko
On Sat, May 9, 2020 at 1:50 AM Raul E Rangel wrote: > > acpi_dev_hid_uid_match expects a null pointer for UID if it doesn't acpi_dev_hid_uid_match() > 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

[PATCH] iommu/amd: Fix get_acpihid_device_id

2020-05-08 Thread Raul E Rangel
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 tr