]> git.proxmox.com Git - mirror_edk2.git/commit
FmpDevicePkg/FmpDependencyCheckLib: Return unsatisfied on handle failure
authorMichael Kubacki <michael.kubacki@microsoft.com>
Thu, 6 Aug 2020 19:05:39 +0000 (12:05 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 7 Aug 2020 02:30:01 +0000 (02:30 +0000)
commite4e27351e858b2a520db06398d86f2511fbcefbe
tree6ad67d64db74b476206bb95d2cb3c5bd26c4f15f
parent86652264641337d960275514056ec94613ecda24
FmpDevicePkg/FmpDependencyCheckLib: Return unsatisfied on handle failure

CheckFmpDependency () will currently return that dependencies are
satisfied if the initial call in the function to locate handles
that have gEfiFirmwareManagementProtocolGuid installed fails.

This change updates the error handling to return FALSE (dependencies
are not satisfied) if this handle search fails.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>
Cc: Wei6 Xu <wei6.xu@intel.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Guomin Jiang <guomin.jiang@intel.com>
Reviewed-by: Wei6 Xu <wei6.xu@intel.com>
FmpDevicePkg/Library/FmpDependencyCheckLib/FmpDependencyCheckLib.c