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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user