Allow null handles to be passed into acpi_name().
This commit is contained in:
parent
6d3e93598f
commit
0a9a1f44ce
@ -2240,7 +2240,7 @@ acpi_name(ACPI_HANDLE handle)
|
||||
buf.Length = sizeof(data);
|
||||
buf.Pointer = data;
|
||||
|
||||
if (ACPI_SUCCESS(AcpiGetName(handle, ACPI_FULL_PATHNAME, &buf)))
|
||||
if (handle && ACPI_SUCCESS(AcpiGetName(handle, ACPI_FULL_PATHNAME, &buf)))
|
||||
return (data);
|
||||
return ("(unknown)");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user