From b6023fb17dfd0bf90c7e7d2dab483c63bf14925c Mon Sep 17 00:00:00 2001 From: "Long, Qin" Date: Thu, 21 Nov 2013 09:02:33 +0000 Subject: Fix coding style problem in RngDxe driver. Signed-off-by: Long, Qin Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14878 6f19259b-4bc3-4df7-8a09-765794883524 --- SecurityPkg/Application/RngTest/RngTest.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'SecurityPkg/Application') diff --git a/SecurityPkg/Application/RngTest/RngTest.c b/SecurityPkg/Application/RngTest/RngTest.c index 25edecefe..f501f806e 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 -- cgit v1.2.3