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

2018-03-13 Thread Yao, Jiewen
Reviewed-by: jiewen@intel.com

> -Original Message-
> From: Zeng, Star
> Sent: Tuesday, March 13, 2018 4:16 PM
> To: edk2-devel@lists.01.org
> Cc: Zeng, Star ; Yao, Jiewen ;
> Dong, Eric ; Zhang, Chao B 
> 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 
> Cc: Eric Dong 
> Cc: Chao Zhang 
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Star Zeng 
> ---
>  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..0aad6591 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


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

2018-03-13 Thread Star Zeng
Continue to next loop instead of going to unlock OPAL password when
AhciModeInitialize is failed.

It is just error handling.

Cc: Jiewen Yao 
Cc: Eric Dong 
Cc: Chao Zhang 
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng 
---
 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..0aad6591 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