From: "gaoliming" <gaoliming@byosoft.com.cn>
To: "'Wu, Hao A'" <hao.a.wu@intel.com>, <devel@edk2.groups.io>
Cc: "'Wang, Jian J'" <jian.j.wang@intel.com>
Subject: 回复: [PATCH] MdeModulePkg: Initialize local variable value before they are used
Date: Thu, 11 Mar 2021 09:10:04 +0800 [thread overview]
Message-ID: <00c401d71613$45790df0$d06b29d0$@byosoft.com.cn> (raw)
In-Reply-To: <BN8PR11MB3666A18D513F9D3BF27C424DCA929@BN8PR11MB3666.namprd11.prod.outlook.com>
Hao:
Yes. I agree. I will add this information when I merge it.
Thanks
Liming
> -----邮件原件-----
> 发件人: Wu, Hao A <hao.a.wu@intel.com>
> 发送时间: 2021年3月9日 10:10
> 收件人: Liming Gao <gaoliming@byosoft.com.cn>; devel@edk2.groups.io
> 抄送: Wang, Jian J <jian.j.wang@intel.com>
> 主题: RE: [PATCH] MdeModulePkg: Initialize local variable value before
they
> are used
>
> > -----Original Message-----
> > From: Liming Gao <gaoliming@byosoft.com.cn>
> > Sent: Tuesday, March 9, 2021 9:24 AM
> > To: devel@edk2.groups.io
> > Cc: Wang, Jian J <jian.j.wang@intel.com>; Wu, Hao A
> <hao.a.wu@intel.com>
> > Subject: [PATCH] MdeModulePkg: Initialize local variable value before
they
> are
> > used
> >
> > This change is to fix the compiler error on GCC49 release build.
>
>
> Thanks Liming. The patch looks good to me:
> Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
>
> I have one question that I think both the reports are false positives.
> Do you think it will be better to add this information in the commit
message?
>
> Best Regards,
> Hao Wu
>
>
> >
> > Cc: Jian J Wang <jian.j.wang@intel.com>
> > Cc: Hao A Wu <hao.a.wu@intel.com>
> > Signed-off-by: Liming Gao <gaoliming@byosoft.com.cn>
> > ---
> > MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c
> | 1 +
> > .../Library/VariablePolicyHelperLib/VariablePolicyHelperLib.c | 1 +
> > 2 files changed, 2 insertions(+)
> >
> > diff --git a/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c
> > b/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c
> > index e99a812a44..0779f94f9e 100644
> > --- a/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c
> > +++ b/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c
> > @@ -1122,6 +1122,7 @@ AhciDmaTransfer (
> >
> > Map = NULL;
> > PciIo = Instance->PciIo;
> > + Status = EFI_SUCCESS;
> >
> > if (PciIo == NULL) {
> > return EFI_INVALID_PARAMETER;
> > diff --git
> >
> a/MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.c
> >
> b/MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.c
> > index 0c9299c8b0..7822cbf4bb 100644
> > ---
> >
> a/MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.c
> > +++
> >
> b/MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.c
> > @@ -117,6 +117,7 @@ CreateBasicVariablePolicy (
> >
> > // Now we've gotta determine the total size of the buffer required
for
> > // the VariablePolicy structure.
> > + NameSize = 0;
> > TotalSize = sizeof( VARIABLE_POLICY_ENTRY );
> > if (Name != NULL) {
> > NameSize = StrnSizeS( Name, MAX_UINT16 );
> > --
> > 2.27.0.windows.1
> >
next prev parent reply other threads:[~2021-03-11 1:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-09 1:24 [PATCH] MdeModulePkg: Initialize local variable value before they are used gaoliming
2021-03-09 2:10 ` Wu, Hao A
2021-03-11 1:10 ` gaoliming [this message]
2021-03-11 1:32 ` [edk2-devel] 回复: " Wu, Hao A
2021-03-11 17:21 ` [edk2-devel] " Laszlo Ersek
2021-03-15 2:57 ` 回复: " 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='00c401d71613$45790df0$d06b29d0$@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