From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 92D7FD81195 for ; Wed, 10 Apr 2024 07:49:34 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=B3hmY2sLRossEivqF4mpbOiU+mHe/siNmH7IcShfig4=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1712735373; v=1; b=Uv2ny3vztbfK6CqOUFjBohTh4tD51NnVWpBl0YbjGOPPanhpBASJFfgh6s4UNDTWZb0wYSC8 ys6Q0t51NnE9bA7WmGhfnYEADtqdIY4JKj5SOhGSeQsOi7/FGAde+m5mmWZsvkJG6x6MR+4bdhl ddYvcufHrlsq83d7+K5P4kKHr4puV3cCtGuJbN9lrCyitWKsvbTHucFh+b/2oVtHJH2AhZ2F4sw eIrvWK6kpv8bmbaeG/GCJ4pZcqf35KbwpcuZ/Bypq+ZxYU6eM1JTia66HTXYkUWUQjRqLcVi1+7 jy/3QRwAf3jYEafipbDFADsnE2bLSsyqPcVLzbuaIsSTQ== X-Received: by 127.0.0.2 with SMTP id muNwYY7687511xutffLNXofv; Wed, 10 Apr 2024 00:49:33 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by mx.groups.io with SMTP id smtpd.web11.161430.1712735368660045425 for ; Wed, 10 Apr 2024 00:49:32 -0700 X-CSE-ConnectionGUID: FUcA0psKQkqOd81I/AQD8Q== X-CSE-MsgGUID: +8usmfbHTGajMXAe62G/Zw== X-IronPort-AV: E=McAfee;i="6600,9927,11039"; a="7955832" X-IronPort-AV: E=Sophos;i="6.07,190,1708416000"; d="scan'208";a="7955832" X-Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2024 00:49:33 -0700 X-CSE-ConnectionGUID: S+05sfYbQomxRR/h2V+HVQ== X-CSE-MsgGUID: 6zEdckd/S9WxIBlY1mb3ng== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,190,1708416000"; d="scan'208";a="51694196" X-Received: from shwdesfp01.ccr.corp.intel.com ([10.239.158.151]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2024 00:49:30 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Zhiguang Liu , Liming Gao , Jiaxin Wu , Ray Ni , Laszlo Ersek , Ard Biesheuvel , Sami Mujawar Subject: [edk2-devel] [PATCH v3 2/6] Revert 049ff6c39c73edd3709c05bd0e46184320471358 Date: Wed, 10 Apr 2024 15:49:03 +0800 Message-Id: <20240410074907.4095-3-zhiguang.liu@intel.com> In-Reply-To: <20240410074907.4095-1-zhiguang.liu@intel.com> References: <20240410074907.4095-1-zhiguang.liu@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Wed, 10 Apr 2024 00:49:32 -0700 Resent-From: zhiguang.liu@intel.com Reply-To: devel@edk2.groups.io,zhiguang.liu@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: sNpaGdShEP5bOPxfDNSHkjEsx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=Uv2ny3vz; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none) This reverts commit "StandaloneMmPkg: Support to unregister MMI handler inside MMI handler" for better design later. Cc: Liming Gao Cc: Jiaxin Wu Cc: Ray Ni Cc: Laszlo Ersek Cc: Ray Ni Cc: Laszlo Ersek Cc: Ard Biesheuvel Cc: Sami Mujawar Signed-off-by: Zhiguang Liu --- StandaloneMmPkg/Core/Mmi.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/StandaloneMmPkg/Core/Mmi.c b/StandaloneMmPkg/Core/Mmi.c index c1a1d76e85..0de6fd17fc 100644 --- a/StandaloneMmPkg/Core/Mmi.c +++ b/StandaloneMmPkg/Core/Mmi.c @@ -154,14 +154,9 @@ MmiManage ( Head = &MmiEntry->MmiHandlers; } - for (Link = Head->ForwardLink; Link != Head;) { + for (Link = Head->ForwardLink; Link != Head; Link = Link->ForwardLink) { MmiHandler = CR (Link, MMI_HANDLER, Link, MMI_HANDLER_SIGNATURE); - // - // To support unregister MMI handler inside MMI handler itself, - // get next node before handler is executed, since LIST_ENTRY that - // Link points to may be freed if unregister MMI handler. - // - Link = Link->ForwardLink; + Status = MmiHandler->Handler ( (EFI_HANDLE)MmiHandler, Context, -- 2.31.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#117574): https://edk2.groups.io/g/devel/message/117574 Mute This Topic: https://groups.io/mt/105437955/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-