]> git.proxmox.com Git - mirror_edk2.git/commit
RedfishPkg: fix multiple SMBIOS type 42 version issue
authorNickle Wang <nicklew@nvidia.com>
Wed, 1 Feb 2023 02:26:45 +0000 (10:26 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 6 Feb 2023 15:11:28 +0000 (15:11 +0000)
commitaea8a9c954a79029ded443eadf7c92716c1753cc
tree551d2c9d75de836562644ac9a43f4ec98ea881dd
parentb98e2113b53fa9c7474a820bcd94fffb352acdf6
RedfishPkg: fix multiple SMBIOS type 42 version issue

RedfishHostInterfaceDxe does not close protocol notify event in
event callback function. This could cause multiple version of
type 42 records issue if the protocol is installed more than once.
Close the event in callback function so we only create one type 42
record.

Signed-off-by: Nickle Wang <nicklew@nvidia.com>
Cc: Abner Chang <abner.chang@amd.com>
Cc: Igor Kulchytskyy <igork@ami.com>
Cc: Nick Ramirez <nramirez@nvidia.com>
Reviewed-by: Abner Chang <abner.chang@amd.com>
RedfishPkg/RedfishHostInterfaceDxe/RedfishHostInterfaceDxe.c