diff options
author | Liming Gao <liming.gao@intel.com> | 2016-12-01 14:47:55 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2016-12-12 10:52:31 +0800 |
commit | ddfae2640c59e6226f2a9242483b7b294edaccab (patch) | |
tree | ae94aa7fcb61e09bff800756c79dc35b6411edcb /MdeModulePkg/Core/PiSmmCore/PiSmmCore.h | |
parent | d5aef955b917e1afc2a76b68f91154aa77e0e12c (diff) | |
download | edk2-ddfae2640c59e6226f2a9242483b7b294edaccab.tar.gz edk2-ddfae2640c59e6226f2a9242483b7b294edaccab.tar.bz2 edk2-ddfae2640c59e6226f2a9242483b7b294edaccab.zip |
MdeModulePkg PiSmmCore: Update FreePages to handle zero address and pages
https://bugzilla.tianocore.org/show_bug.cgi?id=278
Zero memory address or zero number pages are invalid to SmmFreePages().
Cc: Star Zeng <star.zeng@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'MdeModulePkg/Core/PiSmmCore/PiSmmCore.h')
-rw-r--r-- | MdeModulePkg/Core/PiSmmCore/PiSmmCore.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.h b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.h index 8df1e500f0..d1e7791302 100644 --- a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.h +++ b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.h @@ -312,7 +312,7 @@ SmmInternalAllocatePages ( @param NumberOfPages The number of pages to free
@retval EFI_NOT_FOUND Could not find the entry that covers the range
- @retval EFI_INVALID_PARAMETER Address not aligned
+ @retval EFI_INVALID_PARAMETER Address not aligned, Address is zero or NumberOfPages is zero.
@return EFI_SUCCESS Pages successfully freed.
**/
@@ -330,7 +330,7 @@ SmmFreePages ( @param NumberOfPages The number of pages to free
@retval EFI_NOT_FOUND Could not find the entry that covers the range
- @retval EFI_INVALID_PARAMETER Address not aligned
+ @retval EFI_INVALID_PARAMETER Address not aligned, Address is zero or NumberOfPages is zero.
@return EFI_SUCCESS Pages successfully freed.
**/
|