anchao commented on code in PR #18023:
URL: https://github.com/apache/nuttx/pull/18023#discussion_r2705688297


##########
arch/x86_64/src/common/x86_64_acpi.c:
##########
@@ -830,7 +830,7 @@ void acpi_dump(void)
   while (true)
     {
       ret = acpi_lapic_get(i, &lapic);
-      if (ret < 0)
+      if (ret < 0 || lapic == NULL)

Review Comment:
   ```suggestion
         if (ret < 0)
           {
             break;
           }
   
         if (lapic != NULL)
           {
             acpi_info("Found LAPIC for CPU %d %p", i, lapic);
             acpi_info("    ACPI ID %d", lapic->acpi_id);
             acpi_info("    APIC ID %d", lapic->apic_id);
             acpi_info("    flags %d", lapic->flags);
           }
   
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to