Enhance drivers for sanity check and coding style alignment.

Signed-off-by: gdong1
Reviewed-by: ydong10


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12622 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
gdong1
2011-11-01 09:18:30 +00:00
parent 2972b50ca2
commit 44a957c607
4 changed files with 15 additions and 17 deletions

View File

@ -167,7 +167,7 @@ SaveAccessPolicy (
//
// Save access policy.
//
if (mUserInfo.AccessPolicyModified && (mUserInfo.AccessPolicyLen > 0)) {
if (mUserInfo.AccessPolicyModified && (mUserInfo.AccessPolicyLen > 0) && (mUserInfo.AccessPolicy != NULL)) {
Info = AllocateZeroPool (sizeof (EFI_USER_INFO) + mUserInfo.AccessPolicyLen);
if (Info == NULL) {
return ;