Bug 474 - AcpiGetObjectInfo should return AE_BAD_PARAMETER when its Handle parameter is invalid
: AcpiGetObjectInfo should return AE_BAD_PARAMETER when its Handle parameter is...
Status: RESOLVED FIXED
: ACPICA
Core/Interpreter
: unspecified
: All Linux
: P1 normal
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2006-09-22 04:32 by
Modified: 2008-09-22 16:41 (History)


Attachments
patch from the reporter (329 bytes, patch)
2008-03-10 23:59, Lin Ming
Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2006-09-22 04:32:05
On testing conditions when SSDT owning an Object the Handle points to
is unloaded, the relevant call to AcpiGetObjectInfo unexpectedly results
in SUCCESS.

The simple fix is below:

AcpiGetObjectInfo (
...
    Node = AcpiNsMapHandleToNode (Handle);
    if (!Node)
    {
        (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE);
+        Status = AE_BAD_PARAMETER;
        goto Cleanup;
    }

INTERNAL API TS BUG NUMBER:

             36
------- Comment #1 From 2008-03-10 23:59:31 -------
Created an attachment (id=783) [details]
patch from the reporter

the reporter's patch fix this problem
we should ship it to next release
------- Comment #2 From 2008-06-17 13:16:19 -------
Fixed 17 June 2008. Will appear in next ACPICA release.
------- Comment #3 From 2008-09-22 16:41:54 -------
this fix is in the linux-acpi test tree