summaryrefslogtreecommitdiff
path: root/SecurityPkg/UserIdentification/UserProfileManagerDxe/ModifyAccessPolicy.c
diff options
context:
space:
mode:
authorgdong1 <gdong1@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-01 09:18:30 +0000
committergdong1 <gdong1@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-01 09:18:30 +0000
commit44a957c6079de6bf6c40d1782bcea07f9866fd58 (patch)
tree00270389e56d47374ed33bea675e8948ddff76e4 /SecurityPkg/UserIdentification/UserProfileManagerDxe/ModifyAccessPolicy.c
parent2972b50ca22611bc63be80176b0f391dbd29be17 (diff)
downloadedk2-platforms-44a957c6079de6bf6c40d1782bcea07f9866fd58.tar.xz
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
Diffstat (limited to 'SecurityPkg/UserIdentification/UserProfileManagerDxe/ModifyAccessPolicy.c')
-rw-r--r--SecurityPkg/UserIdentification/UserProfileManagerDxe/ModifyAccessPolicy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/SecurityPkg/UserIdentification/UserProfileManagerDxe/ModifyAccessPolicy.c b/SecurityPkg/UserIdentification/UserProfileManagerDxe/ModifyAccessPolicy.c
index 613751e023..d73f77eeec 100644
--- a/SecurityPkg/UserIdentification/UserProfileManagerDxe/ModifyAccessPolicy.c
+++ b/SecurityPkg/UserIdentification/UserProfileManagerDxe/ModifyAccessPolicy.c
@@ -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 ;