Ref count inheritance

date	2000.05.08.15.57.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 16:46:36 +00:00
parent eb27608058
commit 685735b22a

View File

@ -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;