From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail04.groups.io (mail04.groups.io [45.79.224.9]) by spool.mail.gandi.net (Postfix) with ESMTPS id 28394940F6C for ; Tue, 16 Apr 2024 02:41:23 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=hJPlIIv4y356p4RJg8SgNI2z0XUpBOTtDCyEyc0JkGU=; 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=1713235281; v=1; b=ejXyUUbYYEGiyPqyAlMf/SHpwTOjFD5IMLlwQ4W7MD150bUlLRqlznzEuoG+i2GzJxZvBc6N llQInUAbuyXdsdgPtc5SbnkQ0Nj5xYkoRIG51ywJpFag/ySJy4wMTjyeEUgjly7YKv8BJA7b4h2 ChAKUzgP5pO3buRPi7csJ5FQkCAk2snIUbxc8hlFPf8nweJYrSvhcXbmMJGbetGmhh/Ob1BDe4u vkbDw2ijTssesZrJouwq6vkRDmn7/uazxP3jdWv2KHHifolYvOrKp8SKNVQ4s+uvvZ3tU0KRIKr /6yfH883X/oAT89z6Rfs7EBmnvrF4dsvMvJSi/XQiegeQ== X-Received: by 127.0.0.2 with SMTP id IDHYYY7687511xeHodEvLMeo; Mon, 15 Apr 2024 19:41:21 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by mx.groups.io with SMTP id smtpd.web10.11001.1713235276662353128 for ; Mon, 15 Apr 2024 19:41:21 -0700 X-CSE-ConnectionGUID: 7/BFPfyuTgqrD1jo/MGlqw== X-CSE-MsgGUID: VwuZ2wVURMWvrI6oInIbSg== X-IronPort-AV: E=McAfee;i="6600,9927,11045"; a="9205571" X-IronPort-AV: E=Sophos;i="6.07,204,1708416000"; d="scan'208";a="9205571" X-Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2024 19:41:21 -0700 X-CSE-ConnectionGUID: L9sXSd9iTmSRkm5t3cvFBw== X-CSE-MsgGUID: YFDlk+iuTme0EsSFzuF+zA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,204,1708416000"; d="scan'208";a="59553287" X-Received: from shwdesfp01.ccr.corp.intel.com ([10.239.158.151]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2024 19:41:19 -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 v4 2/6] Revert 049ff6c39c73edd3709c05bd0e46184320471358 Date: Tue, 16 Apr 2024 10:41:04 +0800 Message-Id: <20240416024108.1358-3-zhiguang.liu@intel.com> In-Reply-To: <20240416024108.1358-1-zhiguang.liu@intel.com> References: <20240416024108.1358-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: Mon, 15 Apr 2024 19:41:21 -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: lSlDOft4iyXv1oVGeQ57jOWYx7686176AA= 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=ejXyUUbY; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.9 as permitted sender) smtp.mailfrom=bounce@groups.io 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 Reviewed-by: 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 (#117819): https://edk2.groups.io/g/devel/message/117819 Mute This Topic: https://groups.io/mt/105550116/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-