public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Liming Gao" <liming.gao@intel.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>,
	"newexplorerj@gmail.com" <newexplorerj@gmail.com>
Subject: Re: [edk2-devel] [PATCH 1/3] FmpDevicePkg/FmpDxe: Issues reported by ECC in EDK2.
Date: Thu, 13 Feb 2020 09:18:59 +0000	[thread overview]
Message-ID: <0c44d61de4d84f3ab35a5207e3f87bcb@intel.com> (raw)
In-Reply-To: <16ebd7982dcfc25c46bf933384bfcdb5f711e9a2.1581494371.git.newexplorerj@gmail.com>

Reviewed-by: Liming Gao <liming.gao@intel.com>

> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of GuoMinJ
> Sent: Thursday, February 13, 2020 4:34 PM
> To: devel@edk2.groups.io
> Cc: GuoMinJ <newexplorerj@gmail.com>
> Subject: [edk2-devel] [PATCH 1/3] 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>
> ---
>  FmpDevicePkg/FmpDxe/Dependency.c | 4 ++--
>  FmpDevicePkg/FmpDxe/Dependency.h | 2 +-
>  FmpDevicePkg/FmpDxe/FmpDxe.c     | 2 +-
>  3 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/FmpDevicePkg/FmpDxe/Dependency.c b/FmpDevicePkg/FmpDxe/Dependency.c
> index b63a36b989..8f97c42916 100644
> --- a/FmpDevicePkg/FmpDxe/Dependency.c
> +++ b/FmpDevicePkg/FmpDxe/Dependency.c
> @@ -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.
> diff --git a/FmpDevicePkg/FmpDxe/Dependency.h b/FmpDevicePkg/FmpDxe/Dependency.h
> index a2aaaceeae..badd2542d6 100644
> --- a/FmpDevicePkg/FmpDxe/Dependency.h
> +++ b/FmpDevicePkg/FmpDxe/Dependency.h
> @@ -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
>    );
> 
> diff --git a/FmpDevicePkg/FmpDxe/FmpDxe.c b/FmpDevicePkg/FmpDxe/FmpDxe.c
> index aa92331966..5b523291e4 100644
> --- a/FmpDevicePkg/FmpDxe/FmpDxe.c
> +++ b/FmpDevicePkg/FmpDxe/FmpDxe.c
> @@ -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);
> --
> 2.17.1
> 
> 
> 


      parent reply	other threads:[~2020-02-13  9:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-13  8:33 [PATCH 1/3] FmpDevicePkg/FmpDxe: Issues reported by ECC in EDK2 newexplorerj
2020-02-13  8:33 ` [PATCH 2/3] MdeModulePkg: " GuoMinJ
2020-02-14  1:17   ` [edk2-devel] " Liming Gao
2020-02-14  6:36   ` Wu, Hao A
2020-02-13  8:33 ` [PATCH 3/3] SecurityPkg: " GuoMinJ
2020-02-13 10:23   ` [edk2-devel] " Yao, Jiewen
2020-02-13  9:18 ` Liming Gao [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0c44d61de4d84f3ab35a5207e3f87bcb@intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox