]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/ReportStatusCodeRouter: Clear RSC Data buffer if Data is NULL
authorMichael Kubacki <michael.kubacki@microsoft.com>
Wed, 8 Apr 2020 22:11:59 +0000 (06:11 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 21 Apr 2020 02:20:51 +0000 (02:20 +0000)
commit7a7bedce25d257c1058d9a5212a3a0554c5d70a6
treeb1e2f243f991de2bde3f0b15f4f00d7c3121dd95
parentbe7295b36405d9029a0008f6bff0d5e19fb6209a
MdeModulePkg/ReportStatusCodeRouter: Clear RSC Data buffer if Data is NULL

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1969

ReportDispatcher() may be invoked with a NULL Data argument. When TPL is
less than TPL_HIGH_LEVEL and Data is NULL, the EFI_STATUS_CODE_DATA
structure inside RscData should be cleared so listeners will not receive
data from a previous operation.

Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Kun Qin <Kun.Qin@microsoft.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.c