summaryrefslogtreecommitdiff
path: root/DuetPkg/FSVariable
diff options
context:
space:
mode:
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-12-22 07:16:37 +0000
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-12-22 07:16:37 +0000
commit81c5255cdfb07ebd5fea5ccc1c00f544e70f7977 (patch)
tree07c32d4af6ed058e3d13b7384ffa3da08b2c82fa /DuetPkg/FSVariable
parentd14d2707ea7a337e77ae1831fc0e9ae042626c82 (diff)
downloadedk2-platforms-81c5255cdfb07ebd5fea5ccc1c00f544e70f7977.tar.xz
add error handling for input parameter.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9582 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/FSVariable')
-rw-r--r--DuetPkg/FSVariable/FSVariable.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/DuetPkg/FSVariable/FSVariable.c b/DuetPkg/FSVariable/FSVariable.c
index 6bf61ab670..b68989c3a6 100644
--- a/DuetPkg/FSVariable/FSVariable.c
+++ b/DuetPkg/FSVariable/FSVariable.c
@@ -1288,6 +1288,10 @@ Returns:
return EFI_INVALID_PARAMETER;
}
+ if (DataSize != 0 && Data == NULL) {
+ return EFI_INVALID_PARAMETER;
+ }
+
//
// Make sure if runtime bit is set, boot service bit is set also
//