forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/acpi/acpica/rsxface.c
....@@ -603,10 +603,10 @@
603603 /* Parameter validation */
604604
605605 if (!device_handle || !user_function || !name ||
606
- (!ACPI_COMPARE_NAME(name, METHOD_NAME__CRS) &&
607
- !ACPI_COMPARE_NAME(name, METHOD_NAME__PRS) &&
608
- !ACPI_COMPARE_NAME(name, METHOD_NAME__AEI) &&
609
- !ACPI_COMPARE_NAME(name, METHOD_NAME__DMA))) {
606
+ (!ACPI_COMPARE_NAMESEG(name, METHOD_NAME__CRS) &&
607
+ !ACPI_COMPARE_NAMESEG(name, METHOD_NAME__PRS) &&
608
+ !ACPI_COMPARE_NAMESEG(name, METHOD_NAME__AEI) &&
609
+ !ACPI_COMPARE_NAMESEG(name, METHOD_NAME__DMA))) {
610610 return_ACPI_STATUS(AE_BAD_PARAMETER);
611611 }
612612