mirror of https://github.com/acidanthera/audk.git
Bug Fix in DxeSmmDriverEntryLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5928 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
2bfb60098f
commit
156eb6bbf7
|
@ -133,26 +133,14 @@ _DriverUnloadHandler (
|
||||||
EFI_HANDLE ImageHandle
|
EFI_HANDLE ImageHandle
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Call the unload handlers for all the modules
|
// Call the unload handlers for all the modules.
|
||||||
|
//
|
||||||
|
// Note: All libraries were constructed in SMM space,
|
||||||
|
// therefore we can not destruct them in Unload
|
||||||
|
// handler.
|
||||||
//
|
//
|
||||||
Status = ProcessModuleUnloadList (ImageHandle);
|
return ProcessModuleUnloadList (ImageHandle);
|
||||||
|
|
||||||
//
|
|
||||||
// If the driver specific unload handler does not return an error, then call all of the
|
|
||||||
// library destructors. If the unload handler returned an error, then the driver can not be
|
|
||||||
// unloaded, and the library destructors should not be called
|
|
||||||
//
|
|
||||||
if (!EFI_ERROR (Status)) {
|
|
||||||
ProcessLibraryDestructorList (ImageHandle, gST);
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
// Return the status from the driver specific unload handler
|
|
||||||
//
|
|
||||||
return Status;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue