From nobody Sat May 18 22:54:18 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+90131+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+90131+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1654136313; cv=none; d=zohomail.com; s=zohoarc; b=ezm5uCydMoUTdVSN+S2IiU8fjzeGvXohi1pxEfO3pYgDP1QHh+2Xa/zU0/bgN5nnwfQx9/bmDWjT0Utf+ISovxyX+1MwNPpBEDCJqVzLefOf6YyEOIQdsNZomwd7+eVNp3YEYw3Lk98yqcnb7mXOGL1p6pBtLXBRAUvBm1iJaFM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1654136313; h=Content-Type:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=iqDR0mAAb5B8llUIwK2IvkiurLu7K9CJ0UE+mglCBEQ=; b=cCre+6Aehqs7hl3G8v0PlwnJbqriGgC0KmOHVbrON4+dnmorrNVbtScymKcZ4yl7pL5P3JwAyQucGL1kgr3NZAh7FE/nwPEVz/cS4AtasnJvJJLIWCSSI9NUVYcFxPzFnLH0KMjCMZ4Sik7jypP+WQ+gPVsUmUGbAPvpJBVB50Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+90131+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1654136313850605.3522469376015; Wed, 1 Jun 2022 19:18:33 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id pjdBYY1788612xqRGpU9t2GW; Wed, 01 Jun 2022 19:18:32 -0700 X-Received: from lucky1.263xmail.com (lucky1.263xmail.com [211.157.147.132]) by mx.groups.io with SMTP id smtpd.web09.2052.1654136309796570685 for ; Wed, 01 Jun 2022 19:18:31 -0700 X-Received: from localhost (unknown [192.168.167.8]) by lucky1.263xmail.com (Postfix) with ESMTP id 767FB109B2C for ; Thu, 2 Jun 2022 10:18:26 +0800 (CST) X-MAIL-GRAY: 1 X-MAIL-DELIVERY: 0 X-ADDR-CHECKED4: 1 X-SKE-CHECKED: 1 X-ABS-CHECKED: 0 X-ANTISPAM-LEVEL: 2 X-Received: from mail.byosoft.com.cn (unknown [58.240.74.242]) by smtp.263.net (postfix) whith ESMTP id P6135T139829159388928S1654136306290838_; Thu, 02 Jun 2022 10:18:26 +0800 (CST) X-IP-DOMAINF: 1 X-RL-SENDER: byomail@byosoft.net X-SENDER: byomail@byosoft.net X-LOGIN-NAME: byomail@byosoft.net X-FST-TO: devel@edk2.groups.io X-RCPT-COUNT: 1 X-LOCAL-RCPT-COUNT: 0 X-MUTI-DOMAIN-COUNT: 0 X-SENDER-IP: 58.240.74.242 X-ATTACHMENT-NUM: 0 X-UNIQUE-TAG: <68ec08497eb8a23ab8af1721395c098d> X-System-Flag: 0 X-Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Thu, 02 Jun 2022 10:17:33 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , References: In-Reply-To: Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gW1BBVENIIDEvMV0gTWRlTW9kdWxlUGtnOiBGaXggYSB0eXBv?= Date: Thu, 2 Jun 2022 10:17:34 +0800 Message-ID: <00dd01d87626$ec394280$c4abc780$@byosoft.com.cn> MIME-Version: 1.0 Thread-Index: AQFTqJXaDU47Y2dpYmlTTD+Lu6axWK5E/FpQ Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,gaoliming@byosoft.com.cn X-Gm-Message-State: DZ3h2ABA1fsBcRgisZ15cq0Yx1787277AA= Content-Type: multipart/alternative; boundary="----=_NextPart_000_00DE_01D87669.FA5D93F0" Content-Language: zh-cn DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1654136312; bh=YX1ie8f1DMs4Necl7hxTtg8WiRjMoCDb23F2GBPfwOc=; h=Content-Type:Date:From:Reply-To:Subject:To; b=fBA+rq7JP4HxCfNChBEhT5J5LXg2xGx8to/2C7NhvTfSzikrUaU+Yw4pgE/E3ITrhXr sZRq0htiNnDu7x6p1dDnPDTedb458X2N51IMz2y39bKMBY3DjTUU4ACUM6oB795laBrGf ISCeGLtn+62isTpNbl+1Afxoj1iCHiKZNFE= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1654136315013100003 ------=_NextPart_000_00DE_01D87669.FA5D93F0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Shuzhen: The patch title can be MdeModulePkg DxeMain: Fix the typo in local variabl= e name.=20 =20 With this change, Reviewed-by: Liming Gao =20 Thanks Liming =E5=8F=91=E4=BB=B6=E4=BA=BA: devel@edk2.groups.io = =E4=BB=A3=E8=A1=A8 zhangshuzhen@live.cn =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2022=E5=B9=B46=E6=9C=881=E6=97=A5 10:= 21 =E6=94=B6=E4=BB=B6=E4=BA=BA: devel@edk2.groups.io =E4=B8=BB=E9=A2=98: [edk2-devel] [PATCH 1/1] MdeModulePkg: Fix a typo =20 Correctly write 'DstBufAllocated' in CoreLoadPeImage(). Signed-off-by: Zhang Shuzhen > --- MdeModulePkg/Core/Dxe/Image/Image.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MdeModulePkg/Core/Dxe/Image/Image.c b/MdeModulePkg/Core/Dxe/Im= age/Image.c index 68bde5c15c..5bdf96b52c 100644 --- a/MdeModulePkg/Core/Dxe/Image/Image.c +++ b/MdeModulePkg/Core/Dxe/Image/Image.c @@ -581,7 +581,7 @@ CoreLoadPeImage ( ) { EFI_STATUS Status; - BOOLEAN DstBufAlocated; + BOOLEAN DstBufAllocated; UINTN Size; =20 ZeroMem (&Image->ImageContext, sizeof (Image->ImageContext)); @@ -636,7 +636,7 @@ CoreLoadPeImage ( // // Allocate memory of the correct memory type aligned on the required im= age boundary // - DstBufAlocated =3D FALSE; + DstBufAllocated =3D FALSE; if (DstBuffer =3D=3D 0) { // // Allocate Destination Buffer as caller did not pass it in @@ -702,7 +702,7 @@ CoreLoadPeImage ( return Status; } =20 - DstBufAlocated =3D TRUE; + DstBufAllocated =3D TRUE; } else { // // Caller provided the destination buffer @@ -884,7 +884,7 @@ Done: // Free memory. // =20 - if (DstBufAlocated) { + if (DstBufAllocated) { CoreFreePages (Image->ImageContext.ImageAddress, Image->NumberOfPages); Image->ImageContext.ImageAddress =3D 0; Image->ImageBasePage =3D 0; --=20 2.36.1=20 -=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 (#90131): https://edk2.groups.io/g/devel/message/90131 Mute This Topic: https://groups.io/mt/91491977/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- ------=_NextPart_000_00DE_01D87669.FA5D93F0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Shuzhen:

=C2= =A0The patch title can be MdeModulePkg DxeMain: Fix the typo in local varia= ble name.

 

=C2=A0=C2=A0With this change, Reviewed-by: = Liming Gao <gaoliming@byosoft.com.cn>

 

Thanks<= o:p>

Liming

=E5=8F=91=E4=BB=B6=E4=BA=BA: devel@edk2.groups.io <devel@edk2.groups.io> <= /span>= =E4=BB=A3=E8=A1=A8 zhangshuzhen@live.cn
=E5=8F=91=E9=80=81= =E6=97=B6=E9=97=B4: 2022=E5=B9=B46=E6=9C=881=E6=97=A5 10:21
=E6=94=B6=E4=BB=B6=E4=BA=BA= : devel@edk2.groups.io
=E4=B8=BB= =E9=A2=98: [edk2-devel] [P= ATCH 1/1] MdeModulePkg: Fix a typo

=

 

Correctly write 'DstBufAllocated' in CoreL= oadPeImage().

Signed-off-by: Zhang Shuzhen <zhangshuzhen@greatwall.com.cn>
--- MdeModulePkg/Core/Dxe/Image/Image.c | 8 ++++----
 1 file cha= nged, 4 insertions(+), 4 deletions(-)

diff --git a/MdeModulePkg/Core= /Dxe/Image/Image.c b/MdeModulePkg/Core/Dxe/Image/Image.c
index 68bde5c15= c..5bdf96b52c 100644
--- a/MdeModulePkg/Core/Dxe/Image/Image.c
+++ b/= MdeModulePkg/Core/Dxe/Image/Image.c
@@ -581,7 +581,7 @@ CoreLoadPeImage = (
   )
 {
   EFI_STATUS  Status;
= -  BOOLEAN     DstBufAlocated;
+  BOOLEAN&= nbsp;    DstBufAllocated;
   UINTN  &= nbsp;    Size;
 
   ZeroMem (&Image= ->ImageContext, sizeof (Image->ImageContext));
@@ -636,7 +636,7 @@= CoreLoadPeImage (
   //
   // Allocate memory of= the correct memory type aligned on the required image boundary
 &n= bsp; //
-  DstBufAlocated =3D FALSE;
+  DstBufAllocated =3D= FALSE;
   if (DstBuffer =3D=3D 0) {
   &nbs= p; //
     // Allocate Destination Buffer as caller = did not pass it in
@@ -702,7 +702,7 @@ CoreLoadPeImage (
  =      return Status;
     }
&n= bsp;
-    DstBufAlocated =3D TRUE;
+   = DstBufAllocated =3D TRUE;
   } else {
   &n= bsp; //
     // Caller provided the destination buff= er
@@ -884,7 +884,7 @@ Done:
   // Free memory.
 &n= bsp; //
 
-  if (DstBufAlocated) {
+  if (DstBufAll= ocated) {
     CoreFreePages (Image->ImageContext= .ImageAddress, Image->NumberOfPages);
     Image-= >ImageContext.ImageAddress =3D 0;
     Image->= ImageBasePage          &n= bsp;  =3D 0;
--
2.36.1

_._,_._,_

G= roups.io Links:

You receive all messages sent to this group.

Vi= ew/Reply Online (#90131) | | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [importer@patchew.org]
_._,_._,_=20 ------=_NextPart_000_00DE_01D87669.FA5D93F0--