]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg SmmMemLib: Remove ASSERT in SmmIsBufferOutsideSmmValid
authorStar Zeng <star.zeng@intel.com>
Mon, 5 Jun 2017 02:50:43 +0000 (10:50 +0800)
committerStar Zeng <star.zeng@intel.com>
Tue, 6 Jun 2017 01:07:09 +0000 (09:07 +0800)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=577

Currently the SmmIsBufferOutsideSmmValid() function in SmmMemLib.c will
ASSERT in certain conditions. Since this function is a "test" function,
it should not be making decisions on how to handle a failure.
Handling a failure should be left to the caller.

This patch is to remove ASSERT(FALSE) at line 178 of SmmMemLib.c.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Bret Barkelew <bret.barkelew@microsoft.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
MdePkg/Library/SmmMemLib/SmmMemLib.c

index b4e3156cb42a747feccc656a1119c116a8066b80..db55a1a6c15063cdd42c0290e50d95f3f3ac9828 100644 (file)
@@ -6,7 +6,7 @@
   all SMRAM range via SMM_ACCESS2_PROTOCOL, including the range for firmware (like SMM Core\r
   and SMM driver) and/or specific dedicated hardware.\r
 \r
   all SMRAM range via SMM_ACCESS2_PROTOCOL, including the range for firmware (like SMM Core\r
   and SMM driver) and/or specific dedicated hardware.\r
 \r
-  Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -175,7 +175,6 @@ SmmIsBufferOutsideSmmValid (
         Buffer,\r
         Length\r
         ));\r
         Buffer,\r
         Length\r
         ));\r
-      ASSERT (FALSE);\r
       return FALSE;\r
     }\r
   }\r
       return FALSE;\r
     }\r
   }\r