add error handling for input parameter.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9582 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
eric_tian 2009-12-22 07:16:37 +00:00
parent d14d2707ea
commit 81c5255cdf
1 changed files with 4 additions and 0 deletions

View File

@ -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
//