public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "gaoliming" <gaoliming@byosoft.com.cn>
To: <devel@edk2.groups.io>, <sivaparvathic@ami.com>
Cc: "'Vasudevan Sambandan'" <vasudevans@ami.com>,
	"'Sundaresan S'" <sundaresans@ami.com>
Subject: 回复: [edk2-devel] [PATCH] [PATCH]MdeModulePkg/Ufs: Coverity scan flags multiple issues in edk2-stable202205 Signed-off-by: sivaparvathic@ami.com
Date: Tue, 13 Sep 2022 13:14:33 +0800	[thread overview]
Message-ID: <033001d8c72f$b5b99b60$212cd220$@byosoft.com.cn> (raw)
In-Reply-To: <20220802040020.631-1-sivaparvathic@ami.com>

Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>

> -----邮件原件-----
> 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 sivaparvathi
> C via groups.io
> 发送时间: 2022年8月2日 12:02
> 收件人: devel@edk2.groups.io; Sivaparvathi Chellaiah
> <sivaparvathic@ami.com>
> 抄送: Vasudevan Sambandan <vasudevans@ami.com>; Sundaresan S
> <sundaresans@ami.com>
> 主题: [edk2-devel] [PATCH] [PATCH]MdeModulePkg/Ufs: Coverity scan flags
> multiple issues in edk2-stable202205 Signed-off-by: sivaparvathic@ami.com
> 
> ---
>  MdeModulePkg/Bus/Ufs/UfsBlockIoPei/DmaMem.c   | 18
> ++++++++++++------
>  MdeModulePkg/Bus/Ufs/UfsBlockIoPei/UfsHcMem.c |  3 +++
>  2 files changed, 15 insertions(+), 6 deletions(-)
> 
> diff --git a/MdeModulePkg/Bus/Ufs/UfsBlockIoPei/DmaMem.c
> b/MdeModulePkg/Bus/Ufs/UfsBlockIoPei/DmaMem.c
> index 62aeaf86c8..b4b0f07d5e 100644
> --- a/MdeModulePkg/Bus/Ufs/UfsBlockIoPei/DmaMem.c
> +++ b/MdeModulePkg/Bus/Ufs/UfsBlockIoPei/DmaMem.c
> @@ -240,10 +240,16 @@ IoMmuInit (
>    VOID
> 
>    )
> 
>  {
> 
> -  PeiServicesLocatePpi (
> 
> -    &gEdkiiIoMmuPpiGuid,
> 
> -    0,
> 
> -    NULL,
> 
> -    (VOID **)&mIoMmu
> 
> -    );
> 
> +    EFI_STATUS                Status;
> 
> +
> 
> +    Status =   PeiServicesLocatePpi (
> 
> +                    &gEdkiiIoMmuPpiGuid,
> 
> +                    0,
> 
> +                    NULL,
> 
> +                    (VOID **)&mIoMmu
> 
> +                    );
> 
> +
> 
> +    if (EFI_ERROR(Status)) {
> 
> +        DEBUG ((DEBUG_INFO, "Locate mIoMmu Ppi is failed!!!\n"));
> 
> +    }
> 
>  }
> 
> diff --git a/MdeModulePkg/Bus/Ufs/UfsBlockIoPei/UfsHcMem.c
> b/MdeModulePkg/Bus/Ufs/UfsBlockIoPei/UfsHcMem.c
> index b7dd9b6acd..b5f0324908 100644
> --- a/MdeModulePkg/Bus/Ufs/UfsBlockIoPei/UfsHcMem.c
> +++ b/MdeModulePkg/Bus/Ufs/UfsBlockIoPei/UfsHcMem.c
> @@ -414,6 +414,9 @@ UfsPeimFreeMem (
>    //
> 
>    ASSERT (Block != NULL);
> 
> 
> 
> +  if (Block == NULL) {
> 
> +      return;
> 
> +  }
> 
>    //
> 
>    // Release the current memory block if it is empty and not the head
> 
>    //
> 
> --
> 2.31.0.windows.1
> -The information contained in this message may be confidential and
> proprietary to American Megatrends (AMI). This communication is intended
to
> be read only by the individual or entity to whom it is addressed or by
their
> designee. If the reader of this message is not the intended recipient, you
are
> on notice that any distribution of this message, in any form, is strictly
> prohibited. Please promptly notify the sender by reply e-mail or by
telephone
> at 770-246-8600, and then delete or destroy all copies of the
transmission.
> 
> 
> 
> 




  parent reply	other threads:[~2022-09-13  5:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-02  4:01 [PATCH] [PATCH]MdeModulePkg/Ufs: Coverity scan flags multiple issues in edk2-stable202205 Signed-off-by: sivaparvathic@ami.com sivaparvathi C
2022-09-12  9:08 ` [edk2-devel] " sivaparvathi C
2022-09-13  5:14 ` gaoliming [this message]
2022-10-06  8:17   ` [edk2-devel] 回复: " sivaparvathi C
2022-10-08  1:53     ` 回复: " gaoliming
2022-10-13 11:18       ` [edk2-devel] " sivaparvathi C
2022-10-17  5:17         ` 回复: " gaoliming
2022-10-28  8:04           ` [edk2-devel] " sivaparvathi C
2022-11-01  1:52             ` 回复: " gaoliming

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='033001d8c72f$b5b99b60$212cd220$@byosoft.com.cn' \
    --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