summary refs log tree commit diff
path: root/mm/kmsan
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@amd.com>2022-09-19 10:56:37 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-07 11:11:54 +0100
commit808948f4922f6b0bc49547cd8e928b67b8a0b47e (patch)
tree1965aa34947bdc4d3c6644e890ca8babba4fba63 /mm/kmsan
parentfdbbb40583195c1b060a1bb26dd1beaf85ea02f9 (diff)
downloadlinux-808948f4922f6b0bc49547cd8e928b67b8a0b47e.tar.gz
iommu/amd: Fix ivrs_acpihid cmdline parsing code
commit 5f18e9f8868c6d4eae71678e7ebd4977b7d8c8cf upstream.

The second (UID) strcmp in acpi_dev_hid_uid_match considers
"0" and "00" different, which can prevent device registration.

Have the AMD IOMMU driver's ivrs_acpihid parsing code remove
any leading zeroes to make the UID strcmp succeed.  Now users
can safely specify "AMDxxxxx:00" or "AMDxxxxx:0" and expect
the same behaviour.

Fixes: ca3bf5d47cec ("iommu/amd: Introduces ivrs_acpihid kernel parameter")
Signed-off-by: Kim Phillips <kim.phillips@amd.com>
Cc: stable@vger.kernel.org
Cc: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Cc: Joerg Roedel <jroedel@suse.de>
Link: https://lore.kernel.org/r/20220919155638.391481-1-kim.phillips@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/kmsan')
0 files changed, 0 insertions, 0 deletions