diff options
author | msmith <msmith@FreeBSD.org> | 2000-12-05 00:19:10 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 2000-12-05 00:19:10 +0000 |
commit | 6715d70e6f2e707c60520a2cff9de2edfb429f0e (patch) | |
tree | 7d4d0dc599c0338f43f0ae204ec226af209155a8 /sys/dev/acpica | |
parent | 17a750ff36a5183c6347e0cf279beb2d20e12145 (diff) | |
download | FreeBSD-src-6715d70e6f2e707c60520a2cff9de2edfb429f0e.zip FreeBSD-src-6715d70e6f2e707c60520a2cff9de2edfb429f0e.tar.gz |
ACPI HID's aren't limited to 7 characters. Don't check the length of the
HID passed in as an argument at all; callers are typically going to be
sending us static strings anyway.
Submitted by: Munehiro Matsuda <haro@tk.kubota.co.jp>
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r-- | sys/dev/acpica/acpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index eeb325c..5095c54 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -644,13 +644,13 @@ acpi_MatchHid(device_t dev, char *hid) ACPI_DEVICE_INFO devinfo; ACPI_STATUS error; - if ((hid == NULL) || (strlen(hid) != 7)) + if (hid == NULL) return(FALSE); if ((h = acpi_get_handle(dev)) == NULL) return(FALSE); if ((error = AcpiGetObjectInfo(h, &devinfo)) != AE_OK) return(FALSE); - if ((devinfo.Valid & ACPI_VALID_HID) && !strncmp(hid, devinfo.HardwareId, 7)) + if ((devinfo.Valid & ACPI_VALID_HID) && !strcmp(hid, devinfo.HardwareId)) return(TRUE); return(FALSE); } |