public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v1 0/1] MdeModulePkg/Core: Fix the potential hang of calling SetTimer.
@ 2022-09-21  2:01 Ying-Tsun Huang
  0 siblings, 0 replies; 3+ messages in thread
From: Ying-Tsun Huang @ 2022-09-21  2:01 UTC (permalink / raw)
  To: devel

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     |  2 ++
 MdeModulePkg/Core/Dxe/Event/Timer.c | 14 ++++++++++----
 2 files changed, 12 insertions(+), 4 deletions(-)

-- 
2.25.1


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

* [PATCH v1 0/1] MdeModulePkg/Core: Fix the potential hang of calling SetTimer.
@ 2022-09-21  2:10 Ying-Tsun Huang
  0 siblings, 0 replies; 3+ messages in thread
From: Ying-Tsun Huang @ 2022-09-21  2:10 UTC (permalink / raw)
  To: devel

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     |  2 ++
 MdeModulePkg/Core/Dxe/Event/Timer.c | 14 ++++++++++----
 2 files changed, 12 insertions(+), 4 deletions(-)

-- 
2.25.1


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

* [PATCH v1 0/1] MdeModulePkg/Core: Fix the potential hang of calling SetTimer.
@ 2022-09-21  2:48 ying-tsun.huang
  0 siblings, 0 replies; 3+ messages in thread
From: ying-tsun.huang @ 2022-09-21  2:48 UTC (permalink / raw)
  To: devel

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     |  2 ++
 MdeModulePkg/Core/Dxe/Event/Timer.c | 14 ++++++++++----
 2 files changed, 12 insertions(+), 4 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2022-09-21  2:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-21  2:01 [PATCH v1 0/1] MdeModulePkg/Core: Fix the potential hang of calling SetTimer Ying-Tsun Huang
  -- strict thread matches above, loose matches on Subject: below --
2022-09-21  2:10 Ying-Tsun Huang
2022-09-21  2:48 ying-tsun.huang

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