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 27154941323 for ; Wed, 3 Apr 2024 07:50:46 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=uagO0jfsZdtePYgAn50Q1IQkPJCht/nMMQUCczyHsQ4=; 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=1712130645; v=1; b=l67szGzteYj/XVP6Jxe76pJzFxuMJ209kGj7AjCMC3xec3pw+nITDMeanO9mDX6IKqZQ90PO m2iyyIz5O9dIcr4Wyc0VxT1zNQcIZ0wgm38/PjJeNazGTY/c3cqQ3odhIiVvGzBGRbMmPcYnhL7 cHZrr1VXulWk5/YUXSrb8S5zOHOHJhqOxZm1Wa4U85p4iXemD7b9UDSJrxj2yXQ7oiMCOLNEmqi Q60PSSdMX625Xf+l7EdTWr71V2aJGlL4HDM8lHQ2cpTJkR/GgLSck+FnTGMppKi1JdMpCJMbr9o nt27zZCNsbuFWGkwYiX1Fbrc5lvei0ovUVXOvD0IMKpFA== X-Received: by 127.0.0.2 with SMTP id TcUmYY7687511xbXNRDPGR5u; Wed, 03 Apr 2024 00:50:45 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by mx.groups.io with SMTP id smtpd.web11.5859.1712130636141857502 for ; Wed, 03 Apr 2024 00:50:45 -0700 X-CSE-ConnectionGUID: YDkXQ/NaQByjJRFFlv7J2Q== X-CSE-MsgGUID: k2CAD/09RQawGkF1l4k2Pg== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="10311960" X-IronPort-AV: E=Sophos;i="6.07,176,1708416000"; d="scan'208";a="10311960" X-Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 00:50:45 -0700 X-CSE-ConnectionGUID: Vutc81HlTSuapN3m8Rag3Q== X-CSE-MsgGUID: A7RFZcbKR/GNjqasiNoQ9g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,176,1708416000"; d="scan'208";a="18399082" X-Received: from shwdesfp01.ccr.corp.intel.com ([10.239.158.151]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 00:50:43 -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 v2 4/6] Revert ae1079b386a597108a8070652bf7cdaa4ec3dda3 Date: Wed, 3 Apr 2024 15:50:15 +0800 Message-Id: <20240403075017.1997-5-zhiguang.liu@intel.com> In-Reply-To: <20240403075017.1997-1-zhiguang.liu@intel.com> References: <20240403075017.1997-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, 03 Apr 2024 00:50:45 -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: z5F5ytVpoThLyrvH2CProq3Nx7686176AA= 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=l67szGzt; 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 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io This reverts "MdeModulePkg/SMM: Support to unregister SMI handler inside SMI 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 --- MdeModulePkg/Core/PiSmmCore/Smi.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/MdeModulePkg/Core/PiSmmCore/Smi.c b/MdeModulePkg/Core/PiSmmCore/Smi.c index 3489c130fd..2985f989c3 100644 --- a/MdeModulePkg/Core/PiSmmCore/Smi.c +++ b/MdeModulePkg/Core/PiSmmCore/Smi.c @@ -134,14 +134,8 @@ SmiManage ( Head = &SmiEntry->SmiHandlers; - for (Link = Head->ForwardLink; Link != Head;) { + for (Link = Head->ForwardLink; Link != Head; Link = Link->ForwardLink) { SmiHandler = CR (Link, SMI_HANDLER, Link, SMI_HANDLER_SIGNATURE); - // - // To support unregister SMI handler inside SMI handler itself, - // get next node before handler is executed, since LIST_ENTRY that - // Link points to may be freed if unregister SMI handler. - // - Link = Link->ForwardLink; Status = SmiHandler->Handler ( (EFI_HANDLE)SmiHandler, -- 2.31.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#117352): https://edk2.groups.io/g/devel/message/117352 Mute This Topic: https://groups.io/mt/105304509/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-