public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Star Zeng <star.zeng@intel.com>
To: edk2-devel@lists.01.org
Cc: Star Zeng <star.zeng@intel.com>,
	Jiewen Yao <jiewen.yao@intel.com>,
	Chao Zhang <chao.b.zhang@intel.com>
Subject: [PATCH 2/2] SecurityPkg TcgMor: Remove wrong comments
Date: Mon, 18 Dec 2017 14:23:21 +0800	[thread overview]
Message-ID: <1513578201-18608-3-git-send-email-star.zeng@intel.com> (raw)
In-Reply-To: <1513578201-18608-1-git-send-email-star.zeng@intel.com>

and free the HandleBuffer after used.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
---
 SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.c b/SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.c
index e691a084d0ed..4fc3330c3964 100644
--- a/SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.c
+++ b/SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.c
@@ -23,8 +23,6 @@ UINT8    mMorControl;
 /**
   Ready to Boot Event notification handler.
 
-  Sequence of OS boot events is measured in this event notification handler.
-
   @param[in]  Event     Event whose notification function is being invoked
   @param[in]  Context   Pointer to the notification function's context
 
@@ -234,9 +232,6 @@ Exit:
 /**
   Notification function of END_OF_DXE.
 
-  This is a notification function registered on END_OF_DXE event.
-  It is to get VarCheckPcdBin.
-
   @param[in] Event      Event whose notification function is being invoked.
   @param[in] Context    Pointer to the notification function's context.
 
@@ -299,6 +294,8 @@ TPerResetAtEndOfDxe (
 
     InitiateTPerReset (Ssp, BlockIo->Media->MediaId);
   }
+
+  FreePool (HandleBuffer);
 }
 
 /**
-- 
2.7.0.windows.1



  parent reply	other threads:[~2017-12-18  6:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-18  6:23 [PATCH 0/2] Minor refinement about TCG MOR Star Zeng
2017-12-18  6:23 ` [PATCH 1/2] MdePkg MemoryOverwriteControl.h: Correct typo 'bi' to 'bit' Star Zeng
2017-12-18  6:23 ` Star Zeng [this message]
2017-12-19  1:27 ` [PATCH 0/2] Minor refinement about TCG MOR Yao, Jiewen

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=1513578201-18608-3-git-send-email-star.zeng@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