forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/drivers/acpi/acpica/dbnames.c
....@@ -652,6 +652,9 @@
652652 object_info =
653653 ACPI_ALLOCATE_ZEROED(sizeof(struct acpi_object_info));
654654
655
+ if (!object_info)
656
+ return (AE_NO_MEMORY);
657
+
655658 /* Walk the namespace from the root */
656659
657660 (void)acpi_walk_namespace(ACPI_TYPE_ANY, ACPI_ROOT_OBJECT,