From: "Bi, Dandan" <dandan.bi@intel.com>
To: "Gao, Liming" <liming.gao@intel.com>,
"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: [Patch] Revert "MdeModulePkg/DisplayEngine: Remove useless NULL ptr check for NewPos"
Date: Sat, 10 Nov 2018 23:32:39 +0000 [thread overview]
Message-ID: <3C0D5C461C9E904E8F62152F6274C0BB40183944@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <20181110141545.11944-1-liming.gao@intel.com>
Reviewed-by: Bi Dandan <dandan.bi@intel.com>
Thanks,
Dandan
> -----Original Message-----
> From: Gao, Liming
> Sent: Saturday, November 10, 2018 10:16 PM
> To: edk2-devel@lists.01.org
> Cc: Bi, Dandan <dandan.bi@intel.com>
> Subject: [Patch] Revert "MdeModulePkg/DisplayEngine: Remove useless
> NULL ptr check for NewPos"
>
> This reverts commit 8cd4e734ccdfbc961c72aeaa8dbd3f5154171f9b.
>
> It is not a real bug fix. It should not be pushed after Hard Feature Freeze for
> edk2-stable201811 tag.
>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Liming Gao <liming.gao@intel.com>
> Cc: Dandan Bi <dandan.bi@intel.com>
> ---
> MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c
> b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c
> index 44f087fe01..7390f954b6 100644
> --- a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c
> +++ b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c
> @@ -2882,7 +2882,6 @@ UiDisplayMenu (
> //
> ControlFlag = CfUpdateHelpString;
>
> - ASSERT (NewPos != NULL);
> UpdateHighlightMenuInfo(NewPos, TopOfScreen, SkipValue);
>
> if (SkipHighLight) {
> @@ -2911,7 +2910,7 @@ UiDisplayMenu (
> Temp2 = 0;
> }
>
> - if (MenuOption == NULL || NewPos != &MenuOption->Link) {
> + if (NewPos != NULL && (MenuOption == NULL || NewPos !=
> + &MenuOption->Link)) {
> if (MenuOption != NULL) {
> //
> // Remove the old highlight menu.
> --
> 2.13.0.windows.1
prev parent reply other threads:[~2018-11-10 23:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-10 14:15 [Patch] Revert "MdeModulePkg/DisplayEngine: Remove useless NULL ptr check for NewPos" Liming Gao
2018-11-10 23:32 ` Bi, Dandan [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=3C0D5C461C9E904E8F62152F6274C0BB40183944@shsmsx102.ccr.corp.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