]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SecurityPkg TcgStorageOpalLib: Fixed gcc build failure.
authorEric Dong <eric.dong@intel.com>
Wed, 6 Apr 2016 04:54:11 +0000 (12:54 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Wed, 6 Apr 2016 05:03:15 +0000 (13:03 +0800)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalCore.c
SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c

index 234909b13b095bc19ac1b9de48f70a784e91e41c..2db5ffeba9c86b33f0eb735965a28f703ecb2cc9 100644 (file)
@@ -12,7 +12,7 @@ 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/TimerLib.h>\r
 #include <Library/BaseMemoryLib.h>\r
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