mirror of https://github.com/acidanthera/audk.git
FmpDevicePkg/FmpDxe: Issues reported by ECC in EDK2.
https://bugzilla.tianocore.org/show_bug.cgi?id=2515 Change the FmpDevicePkg to match the ECC check rule Signed-off-by: GuoMinJ <newexplorerj@gmail.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
5b45b44e6f
commit
466b877f43
|
@ -163,8 +163,8 @@ Push (
|
|||
/**
|
||||
Pop an element from the stack.
|
||||
|
||||
@param[in] Value Element to pop.
|
||||
@param[in] Type Type of element.
|
||||
@param[out] Element Element to pop.
|
||||
@param[in] Type Type of element.
|
||||
|
||||
@retval EFI_SUCCESS The value was popped onto the stack.
|
||||
@retval EFI_ACCESS_DENIED The pop operation underflowed the stack.
|
||||
|
|
|
@ -56,7 +56,7 @@ EvaluateImageDependencies (
|
|||
IN CONST EFI_GUID ImageTypeId,
|
||||
IN CONST UINT32 Version,
|
||||
IN CONST EFI_FIRMWARE_IMAGE_DEP *Dependencies,
|
||||
IN CONST UINT32 DependenciesSize,
|
||||
IN CONST UINT32 DepexSize,
|
||||
OUT BOOLEAN *IsSatisfied
|
||||
);
|
||||
|
||||
|
|
|
@ -413,7 +413,7 @@ PopulateDescriptor (
|
|||
}
|
||||
if (!EFI_ERROR (Status) && Image != NULL) {
|
||||
IsDepexValid = ValidateImageDepex ((EFI_FIRMWARE_IMAGE_DEP *) Image, ImageSize, &DepexSize);
|
||||
if (IsDepexValid == TRUE) {
|
||||
if (IsDepexValid) {
|
||||
Private->Descriptor.Dependencies = AllocatePool (DepexSize);
|
||||
if (Private->Descriptor.Dependencies != NULL) {
|
||||
CopyMem (Private->Descriptor.Dependencies->Dependencies, Image, DepexSize);
|
||||
|
|
Loading…
Reference in New Issue