mirror of
https://github.com/acpica/acpica/
synced 2025-02-12 11:34:42 +03:00
Ref count inheritance
date 2000.05.08.15.57.00; author rmoore1; state Exp;
This commit is contained in:
parent
eb27608058
commit
685735b22a
@ -767,8 +767,9 @@ AcpiInstallAddressSpaceHandler (
|
||||
/*
|
||||
* If the caller hasn't specified a setup routine, use the default
|
||||
*/
|
||||
if (!RegInit) {
|
||||
RegInit = EvDefaultRegionSetup;
|
||||
if (!RegInit)
|
||||
{
|
||||
RegInit = EvDefaultRegionSetup;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -895,6 +896,8 @@ AcpiInstallAddressSpaceHandler (
|
||||
/*
|
||||
* Place this handler 1st on the list
|
||||
*/
|
||||
|
||||
HandlerObj->Common.ReferenceCount = (UINT16) (HandlerObj->Common.ReferenceCount + ObjDesc->Common.ReferenceCount - 1);
|
||||
ObjDesc->Device.AddrHandler = HandlerObj;
|
||||
|
||||
|
||||
@ -1016,9 +1019,10 @@ AcpiRemoveAddressSpaceHandler (
|
||||
*LastObjPtr = HandlerObj->AddrHandler.Link;
|
||||
|
||||
/*
|
||||
* Now we can actually delete the object
|
||||
* Now we can delete the handler object
|
||||
*/
|
||||
CmRemoveReference (HandlerObj);
|
||||
CmRemoveReference (HandlerObj);
|
||||
|
||||
goto UnlockAndExit;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user