From nobody Wed Nov 27 00:47:38 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+42555+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+42555+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1560884330; cv=none; d=zoho.com; s=zohoarc; b=Cc+L9qvVwBcPtA0LX+5hzQIZ6szFWKZZpRucDOdAB9lgO/AZ3j5FvBhk39ZmrRO+S4KebCO1QsxFbfRYFQtXh0hOxrBJS8PghZYcCLw++YjKIEp+TfLDNCUsDnM2Gyy4rfArqoy0xKVY4Ld0S9l1/IkQdEiunqswxPdbxlVWcZw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560884330; h=Cc:Date:From:List-Id:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=m40oVsbxe1Tb1vpiEClVedL630nzNcDwZx8LVhGZB2g=; b=jTJdH/wII7lkFRcDCTJVhtaDUPMehD7jCy1BVEGHOLAXSzakSiQJ/xCOtjsArcT2+eS1YQMYiCMvTcTLvGQ2eUigkF643ZoTXESAPk8ADT+H9YbiJJjIh0kx6UEfrjvMOcgDwnLenLCOYoRD0krxE1jiWTscpu9k9vQXkPgO/fE= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+42555+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1560884330263318.31337905611986; Tue, 18 Jun 2019 11:58:50 -0700 (PDT) Return-Path: X-Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by groups.io with SMTP; Mon, 17 Jun 2019 20:28:41 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jun 2019 20:28:40 -0700 X-ExtLoop1: 1 X-Received: from chinghux-desk1.gar.corp.intel.com ([10.5.215.157]) by orsmga007.jf.intel.com with ESMTP; 17 Jun 2019 20:28:39 -0700 From: GregX Yeh To: devel@edk2.groups.io Cc: Dandan Bi , Ray Ni , Ted Kuo Subject: [edk2-devel] [PATCH] MdeModulePkg:Platform exception when callback function was destroyed by unconnected controller in setup browser Date: Tue, 18 Jun 2019 11:28:13 +0800 Message-Id: <20190618032813.5136-1-gregx.yeh@intel.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,gregx.yeh@intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1560884329; bh=zRwjJqaR7ZqyMnQs9Slx3kOdC7t5xay0gc6CpaykSLg=; h=Cc:Date:From:Reply-To:Subject:To; b=naepMXlh/eplJDto1SgZpGZDu4YcvM//7l2zjGLG7JHR79c4q7CemtdIuTlVgDUkGlO Xu+iBM31c+4Py0YCzCiby0eqlFu0yQoo8kqv4jXD52WQ+gqnbR9ALRXB1Ti0h6yFFGSKI K4ueZe6R62Pk6GVQTuJWcz/jag3WZzsA7c0= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" https://bugzilla.tianocore.org/show_bug.cgi?id=3D1920 Check ConfigAccess available before call callback function. Signed-off-by: GregX Yeh Cc: Dandan Bi Cc: Ray Ni Cc: Ted Kuo --- MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c | 17 +++++++++++++++= ++ 1 file changed, 17 insertions(+) diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c b/MdeMod= ulePkg/Universal/SetupBrowserDxe/Presentation.c index d7927725b2..a613ab350c 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c @@ -1958,6 +1958,23 @@ ProcessCallBackFunction ( if (ConfigAccess =3D=3D NULL) { return EFI_SUCCESS; } +// +// Check ConfigAccess available. +// + Status =3D gBS->HandleProtocol ( + FormSet->DriverHandle, + &gEfiHiiConfigAccessProtocolGuid, + (VOID **) &FormSet->ConfigAccess + ); + if (EFI_ERROR (Status)) { + // + // Configuration Driver don't attach ConfigAccess protocol to its HII = package + // list, then there will be no configuration action required. + // Or the ConfigAccess protocol has been uninstalled. + // + FormSet->ConfigAccess =3D NULL; + return EFI_SUCCESS; + } =20 Link =3D GetFirstNode (&Form->StatementListHead); while (!IsNull (&Form->StatementListHead, Link)) { --=20 2.16.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#42555): https://edk2.groups.io/g/devel/message/42555 Mute This Topic: https://groups.io/mt/32110310/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-