]> git.proxmox.com Git - mirror_edk2.git/commit - SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareUpdateDxe.c
SignedCapsulePkg SystemFirmwareUpdateDxe: Fix failure caused by d69d922
authorStar Zeng <star.zeng@intel.com>
Fri, 13 Apr 2018 09:55:14 +0000 (17:55 +0800)
committerStar Zeng <star.zeng@intel.com>
Mon, 16 Apr 2018 05:55:00 +0000 (13:55 +0800)
commit665bfd41ac32b364201c07dc1c5434432730c034
tree867cad60cebfc3d938bf930415edbd221f8efa07
parentb85b20fba42e25ff658ed1a470250d530c189027
SignedCapsulePkg SystemFirmwareUpdateDxe: Fix failure caused by d69d922

d69d9227d046211265de1fab5580c50a65944614 caused system firmware update
failure. It is because FindMatchingFmpHandles() is expected to return
handles matched, but the function returns all handles found.

This patch is to fix the issue.
This patch also assigns mSystemFmpPrivate->Handle for "case 1:" path
in case the Handle is needed by other place in future.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareUpdateDxe.c