break;\r
}\r
\r
+ //\r
+ // Check whether opal device's Tries value has reach the TryLimit value, if yes, force a shutdown\r
+ // before accept new password.\r
+ //\r
+ if (Ret == TcgResultFailureInvalidType) {\r
+ Count = MAX_PASSWORD_TRY_COUNT;\r
+ break;\r
+ }\r
+\r
Count++;\r
\r
do {\r