[edk2] [PATCH] SecurityPkg OpalPasswordPei: Continue when AhciModeInitialize is failed

Star Zeng posted 1 patch 6 years, 1 month ago
Failed in applying to current master (apply log)
SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordPei.c | 1 +
1 file changed, 1 insertion(+)
[edk2] [PATCH] SecurityPkg OpalPasswordPei: Continue when AhciModeInitialize is failed
Posted by Star Zeng 6 years, 1 month ago
Continue to next loop instead of going to unlock OPAL password when
AhciModeInitialize is failed.

It is just error handling.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
---
 SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordPei.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordPei.c b/SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordPei.c
index 7f9e14fa81a7..0aad6591aaaa 100644
--- a/SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordPei.c
+++ b/SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordPei.c
@@ -717,6 +717,7 @@ UnlockOpalPasswordAta (
       ASSERT_EFI_ERROR (Status);
       if (EFI_ERROR (Status)) {
         DEBUG ((DEBUG_ERROR, "%a() AhciModeInitialize() error, Status: %r\n", __FUNCTION__, Status));
+        continue;
       }
 
       OpalDev.Signature = OPAL_PEI_DEVICE_SIGNATURE;
-- 
2.7.0.windows.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Re: [edk2] [PATCH] SecurityPkg OpalPasswordPei: Continue when AhciModeInitialize is failed
Posted by Yao, Jiewen 6 years, 1 month ago
Reviewed-by: Jiewen.yao@intel.com

> -----Original Message-----
> From: Zeng, Star
> Sent: Tuesday, March 13, 2018 4:16 PM
> To: edk2-devel@lists.01.org
> Cc: Zeng, Star <star.zeng@intel.com>; Yao, Jiewen <jiewen.yao@intel.com>;
> Dong, Eric <eric.dong@intel.com>; Zhang, Chao B <chao.b.zhang@intel.com>
> Subject: [PATCH] SecurityPkg OpalPasswordPei: Continue when
> AhciModeInitialize is failed
> 
> Continue to next loop instead of going to unlock OPAL password when
> AhciModeInitialize is failed.
> 
> It is just error handling.
> 
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Eric Dong <eric.dong@intel.com>
> Cc: Chao Zhang <chao.b.zhang@intel.com>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Star Zeng <star.zeng@intel.com>
> ---
>  SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordPei.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordPei.c
> b/SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordPei.c
> index 7f9e14fa81a7..0aad6591aaaa 100644
> --- a/SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordPei.c
> +++ b/SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordPei.c
> @@ -717,6 +717,7 @@ UnlockOpalPasswordAta (
>        ASSERT_EFI_ERROR (Status);
>        if (EFI_ERROR (Status)) {
>          DEBUG ((DEBUG_ERROR, "%a() AhciModeInitialize() error,
> Status: %r\n", __FUNCTION__, Status));
> +        continue;
>        }
> 
>        OpalDev.Signature = OPAL_PEI_DEVICE_SIGNATURE;
> --
> 2.7.0.windows.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel