]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c
SecurityPkg TcgStorageOpalLib: Fixed gcc build failure.
[mirror_edk2.git] / SecurityPkg / Library / TcgStorageOpalLib / TcgStorageOpalUtil.c
index 2d3ecb474cfac4f7e5cfe73915c88d2b64f3f614..d27a9c9b5f8fe5e86e901ff4a65e9ec0d151f203 100644 (file)
@@ -11,7 +11,7 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
-#include <uefi.h>\r
+#include <Uefi.h>\r
 #include <Library/BaseLib.h>\r
 #include <Library/DebugLib.h>\r
 #include <Library/TcgStorageOpalLib.h>\r
@@ -853,8 +853,9 @@ OpalUtilDetermineOwnership(
   TCG_RESULT       Ret;\r
   OPAL_OWNER_SHIP  Owner;\r
 \r
-  NULL_CHECK(Session);\r
-  NULL_CHECK(Msid);\r
+  if ((Session == NULL) || (Msid == NULL)) {\r
+    return OpalOwnershipUnknown;\r
+  }\r
 \r
   Owner = OpalOwnershipUnknown;\r
   //\r