Do the following fix up in SetupBrowser driver:
1) Check whether ConfigAccess is NULL before use it. 2) Don't do call back for UI_ACTION_REFRESH_FORMSET action. 3) Release resource before leave SetupBrowser() function. 4) Use the unified check method (HiiHandle, FormsetGuid and FormId) to check FORM is open or close. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10565 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -2080,15 +2080,13 @@ LoadFormConfig (
|
||||
//
|
||||
// Check whether EfiVarstore with CallBack can be got.
|
||||
//
|
||||
if ((Question->QuestionId != 0) && (Question->Storage != NULL) &&
|
||||
if ((FormSet->ConfigAccess != NULL) &&
|
||||
(Selection->Action != UI_ACTION_REFRESH_FORMSET) &&
|
||||
(Question->QuestionId != 0) &&
|
||||
(Question->Storage != NULL) &&
|
||||
(Question->Storage->Type == EFI_HII_VARSTORE_EFI_VARIABLE) &&
|
||||
((Question->QuestionFlags & EFI_IFR_FLAG_CALLBACK) == EFI_IFR_FLAG_CALLBACK)) {
|
||||
//
|
||||
// ConfigAccess can't be NULL.
|
||||
//
|
||||
if (FormSet->ConfigAccess == NULL) {
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
//
|
||||
// Check QuestionValue does exist.
|
||||
//
|
||||
|
Reference in New Issue
Block a user