summaryrefslogtreecommitdiffstats
path: root/SecurityPkg/Application
diff options
context:
space:
mode:
authorLong, Qin <qin.long@intel.com>2013-11-21 09:02:33 +0000
committersfu5 <sfu5@6f19259b-4bc3-4df7-8a09-765794883524>2013-11-21 09:02:33 +0000
commitb6023fb17dfd0bf90c7e7d2dab483c63bf14925c (patch)
tree49ad12db7e769ab36090530e847ed076a8c4a843 /SecurityPkg/Application
parent5cdb96fa0d5f689cb4b3b17ddd2cec164842aebd (diff)
downloadedk2-b6023fb17dfd0bf90c7e7d2dab483c63bf14925c.tar.gz
edk2-b6023fb17dfd0bf90c7e7d2dab483c63bf14925c.tar.bz2
edk2-b6023fb17dfd0bf90c7e7d2dab483c63bf14925c.zip
Fix coding style problem in RngDxe driver.
Signed-off-by: Long, Qin <qin.long@intel.com> Reviewed-by: Fu, Siyuan <siyuan.fu@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14878 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'SecurityPkg/Application')
-rw-r--r--SecurityPkg/Application/RngTest/RngTest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/SecurityPkg/Application/RngTest/RngTest.c b/SecurityPkg/Application/RngTest/RngTest.c
index 25edecefe3..f501f806e9 100644
--- a/SecurityPkg/Application/RngTest/RngTest.c
+++ b/SecurityPkg/Application/RngTest/RngTest.c
@@ -103,6 +103,9 @@ UefiMain (
//
RandSize = 32;
Rand = AllocatePool (RandSize);
+ if (Rand == NULL) {
+ goto Exit;
+ }
//
// RNG with default algorithm