summaryrefslogtreecommitdiff
path: root/include/acpi/processor.h
diff options
context:
space:
mode:
authorRaag Jadav <raag.jadav@intel.com>2024-03-28 06:55:40 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-04-08 17:57:51 +0300
commitaca1a5287ea328fd1f7e2bfa6806646486d86a70 (patch)
treee51cbb7b65f7cabbd4018e04454a25582797b1c4 /include/acpi/processor.h
parentfec50db7033ea478773b159e0e2efb135270e3b7 (diff)
downloadlinux-aca1a5287ea328fd1f7e2bfa6806646486d86a70.tar.xz
ACPI: bus: allow _UID matching for integer zero
Commit b2b32a173881 ("ACPI: bus: update acpi_dev_hid_uid_match() to support multiple types") added _UID matching support for both integer and string types, which satisfies NULL @uid2 argument for string types using inversion, but this logic prevents _UID comparision in case the argument is integer 0, which may result in false positives. Fix this using _Generic(), which will allow NULL @uid2 argument for string types as well as _UID matching for all possible integer values. Fixes: b2b32a173881 ("ACPI: bus: update acpi_dev_hid_uid_match() to support multiple types") Signed-off-by: Raag Jadav <raag.jadav@intel.com> [ rjw: Comment adjustment ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi/processor.h')
0 files changed, 0 insertions, 0 deletions