public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v2 0/2] MdeModulePkg/CapsuleLib: Code refinements
@ 2017-03-10  7:16 Hao Wu
  2017-03-10  7:16 ` [PATCH v2 1/2] MdeModulePkg/CapsuleLib: Add lib destructors to handle unclosed events Hao Wu
  2017-03-10  7:16 ` [PATCH v2 2/2] MdeModulePkg/CapsuleLib: Free the buffer returned by GetVariable2 API Hao Wu
  0 siblings, 2 replies; 8+ messages in thread
From: Hao Wu @ 2017-03-10  7:16 UTC (permalink / raw)
  To: edk2-devel; +Cc: Hao Wu, Jiewen Yao

V2 changes:
1) Check the return status of the GetVariable2 API before freeing the
returned buffer from this function.

V1 history:
The series makes the following refinements in DxeCapsuleLibFmp:
1) Add library destructors to close the events created in their relative
constructors.

2) Free the buffer returned by the GetVariable2 API.

Cc: Jiewen Yao <jiewen.yao@intel.com>

Hao Wu (2):
  MdeModulePkg/CapsuleLib: Add lib destructors to handle unclosed events
  MdeModulePkg/CapsuleLib: Free the buffer returned by GetVariable2 API

 MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c          | 37 +++++++++++++++++---
 MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.inf        |  3 +-
 MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleReportLib.c    |  4 +++
 MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleRuntime.c      | 33 ++++++++++++++---
 MdeModulePkg/Library/DxeCapsuleLibFmp/DxeRuntimeCapsuleLib.inf |  4 ++-
 5 files changed, 70 insertions(+), 11 deletions(-)

-- 
2.12.0.windows.1



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-03-10  7:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-10  7:16 [PATCH v2 0/2] MdeModulePkg/CapsuleLib: Code refinements Hao Wu
2017-03-10  7:16 ` [PATCH v2 1/2] MdeModulePkg/CapsuleLib: Add lib destructors to handle unclosed events Hao Wu
2017-03-10  7:22   ` Yao, Jiewen
2017-03-10  7:39     ` Wu, Hao A
2017-03-10  7:45       ` Wu, Hao A
2017-03-10  7:52         ` Yao, Jiewen
2017-03-10  7:16 ` [PATCH v2 2/2] MdeModulePkg/CapsuleLib: Free the buffer returned by GetVariable2 API Hao Wu
2017-03-10  7:21   ` Yao, Jiewen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox