[edk2-devel] [PATCH v2 0/1] MdeModulePkg/Core: Fix the potential hang of calling SetTimer.

Ying-Tsun Huang via groups.io posted 1 patch 5 days, 21 hours ago
Failed in applying to current master (apply log)
MdeModulePkg/Core/Dxe/DxeMain.h     |  3 +++
MdeModulePkg/Core/Dxe/Event/Timer.c | 17 +++++++++++++----
2 files changed, 16 insertions(+), 4 deletions(-)
[edk2-devel] [PATCH v2 0/1] MdeModulePkg/Core: Fix the potential hang of calling SetTimer.
Posted by Ying-Tsun Huang via groups.io 5 days, 21 hours ago
When calling SetTimer with Type is not TimerCancel and TriggerTime is 0,
gTimer is used to get the timer period. However, gTimer is NULL before
EFI_TIMER_ARCH_PROTOCOL is installed. Adding the check of gTimer and
return EFI_NOT_READY to avoid the hang.

Ying-Tsun Huang (1):
  MdeModulePkg/Core: Fix the potential hang of calling SetTimer.

 MdeModulePkg/Core/Dxe/DxeMain.h     |  3 +++
 MdeModulePkg/Core/Dxe/Event/Timer.c | 17 +++++++++++++----
 2 files changed, 16 insertions(+), 4 deletions(-)

-- 
2.25.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#94106): https://edk2.groups.io/g/devel/message/94106
Mute This Topic: https://groups.io/mt/93843296/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-