From nobody Mon Apr 29 14:34:53 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+49041+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+49041+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1571190414; cv=none; d=zoho.com; s=zohoarc; b=bfYM9AS62Biw+wkBMXmdLjKvzdtgKLWwcluSudw4Ui7DoOVpvRXBmFUYTuzUjIdI1GxFpfMCsdYfSRR9hxHeDw7V/n8wJ0SVaDzFcBtKvQob5DySl3lQXWh7dAT+NRDfGNjfluYIunDtjat4XkvrVSCgDTcA/ebfLPBEK212OfE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571190414; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=Zoauof0qQRV6oXR64mP36gKvkkYQqq+R37hQgXNRrI8=; b=X/VvM74tbJzHs/v5VuME7iovTCNvUCwshlQYCc/D71edUzyzU6DsKjIrFFI714xdVxQ7T+GbRMT2y1oyD0gbdnieHnhmtX8PBAOQwqr+pOugJDQBdOGRO+nE3OM52vyJjfGKpP4b4jM0i5Wz1eRvW3nfPG+oVpUAAOA4DvWA9xY= 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+49041+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 1571190414936926.764880044937; Tue, 15 Oct 2019 18:46:54 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id aAxPYY1788612xxMVkhxvAv8; Tue, 15 Oct 2019 18:46:54 -0700 X-Received: from mga09.intel.com (mga09.intel.com []) by mx.groups.io with SMTP id smtpd.web11.936.1571190412247125795 for ; Tue, 15 Oct 2019 18:46:54 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Oct 2019 18:46:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,302,1566889200"; d="scan'208";a="199909581" X-Received: from shenglei-dev.ccr.corp.intel.com ([10.239.158.52]) by orsmga006.jf.intel.com with ESMTP; 15 Oct 2019 18:46:52 -0700 From: "Zhang, Shenglei" To: devel@edk2.groups.io Cc: Hao A Wu , Ray Ni Subject: [edk2-devel] [PATCH 1/3] MdeModulePkg/EhciPei: Initialize the variable Map Date: Wed, 16 Oct 2019 09:46:46 +0800 Message-Id: <20191016014648.4952-2-shenglei.zhang@intel.com> In-Reply-To: <20191016014648.4952-1-shenglei.zhang@intel.com> References: <20191016014648.4952-1-shenglei.zhang@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,shenglei.zhang@intel.com X-Gm-Message-State: VvlXRAPPJnsCpqsxctB088k3x1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1571190414; bh=JVILYvBuq86ucRxEkLMAe/KXwJjhRvxPqayzZVpkkQ8=; h=Cc:Date:From:Reply-To:Subject:To; b=XvgEuJJw/wIUy50gKE3Pr+eguzm91RKn9Xmuq2f5w2QYm6m51mgmbInPw1mB8XXGLn3 nu6/lzlkM5jCqsCp30ZwJ4kfXeZp9UP+UpPWi0/ECEl0++tn0r8RLzWlLOOYe54eOUu6W Fbvp0i3RSr5/qjJJ/BAGX0af7W3eVtJObo8= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Map is used but not Initialized. Cc: Hao A Wu Cc: Ray Ni Signed-off-by: Shenglei Zhang --- MdeModulePkg/Bus/Pci/EhciPei/EhciUrb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MdeModulePkg/Bus/Pci/EhciPei/EhciUrb.c b/MdeModulePkg/Bus/Pci/= EhciPei/EhciUrb.c index 7c6a6a5f9716..995ccd2463d2 100644 --- a/MdeModulePkg/Bus/Pci/EhciPei/EhciUrb.c +++ b/MdeModulePkg/Bus/Pci/EhciPei/EhciUrb.c @@ -534,6 +534,8 @@ EhcCreateUrb ( PEI_URB *Urb; VOID *Map; =20 + Map =3D NULL; + Urb =3D Ehc->Urb; Urb->Signature =3D EHC_URB_SIG; InitializeListHead (&Urb->UrbList); --=20 2.18.0.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 (#49041): https://edk2.groups.io/g/devel/message/49041 Mute This Topic: https://groups.io/mt/34556040/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- From nobody Mon Apr 29 14:34:53 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+49042+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+49042+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1571190416; cv=none; d=zoho.com; s=zohoarc; b=IPo09BuSdkqe7LKk4qYZOkdA9/poevcrSZTqXdC6wuaoXbtWXqNtxGeb696gd/x3OLMqCoFjQ9loTUj1Zo3+ZtH2rUQMR9P4ILD4g4/QCj0vEv33SrR0bRhRklSUDWqvelS1slB8WWN4nSj6QCEIGSIp6jlj7fHyiLVKU6Jph4M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571190416; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=pHQclPPaH9VAAWbMUZ6dC5wZaZLaorHke+3ZgCw5XWk=; b=IsauK+nNlgJv7Q41Uab9la58HUHrbcstcm20Y7S1VvXhpH2U3X7bijTqETocnZSmm16U2WAiXta0auxTUdZ73nR1aQxv/oJPChqxXkxUmkKlWIEcZXkZkuSCAjX/7mvZbOzEfz/RXSvTcSldKE0YwWhFdiket2n+KGoRCSdcsE4= 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+49042+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 1571190416719661.7048226001626; Tue, 15 Oct 2019 18:46:56 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id zK2qYY1788612xFXEkclbCEu; Tue, 15 Oct 2019 18:46:56 -0700 X-Received: from mga09.intel.com (mga09.intel.com []) by mx.groups.io with SMTP id smtpd.web11.936.1571190412247125795 for ; Tue, 15 Oct 2019 18:46:55 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Oct 2019 18:46:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,302,1566889200"; d="scan'208";a="199909589" X-Received: from shenglei-dev.ccr.corp.intel.com ([10.239.158.52]) by orsmga006.jf.intel.com with ESMTP; 15 Oct 2019 18:46:54 -0700 From: "Zhang, Shenglei" To: devel@edk2.groups.io Cc: Hao A Wu , Ray Ni Subject: [edk2-devel] [PATCH 2/3] MdeModulePkg/UhciPei: Initialize the variable RequestMap Date: Wed, 16 Oct 2019 09:46:47 +0800 Message-Id: <20191016014648.4952-3-shenglei.zhang@intel.com> In-Reply-To: <20191016014648.4952-1-shenglei.zhang@intel.com> References: <20191016014648.4952-1-shenglei.zhang@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,shenglei.zhang@intel.com X-Gm-Message-State: IJt01zqt1NU3JUPtYmSjBj6sx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1571190416; bh=StzbxUWQ614kEBBBg8WUxEhYtA8Bto8X1isDajcr63E=; h=Cc:Date:From:Reply-To:Subject:To; b=R1NmmLLyEccy0OjrTp5pyrxpZUtAI+ax8ldP82jl78tgcKPRVuvvCzFe+92HtETed/L eImfQuVzF2s6bUHNvcph/mW+hWSY5G4fCO/4Z5Cuq5VIeuUnUmfWHCQsLo46dMeR3Wvfa jiyZ/+5hBs4RieMXyaGF7jAeKzpF8go8PaY= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" RequestMap is used but not Initialized. Cc: Hao A Wu Cc: Ray Ni Signed-off-by: Shenglei Zhang --- MdeModulePkg/Bus/Pci/UhciPei/UhcPeim.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MdeModulePkg/Bus/Pci/UhciPei/UhcPeim.c b/MdeModulePkg/Bus/Pci/= UhciPei/UhcPeim.c index b897c3f82ce6..a05834da3c4a 100644 --- a/MdeModulePkg/Bus/Pci/UhciPei/UhcPeim.c +++ b/MdeModulePkg/Bus/Pci/UhciPei/UhcPeim.c @@ -274,6 +274,8 @@ UhcControlTransfer ( =20 PktID =3D INPUT_PACKET_ID; =20 + RequestMap =3D NULL; + if (Request =3D=3D NULL || TransferResult =3D=3D NULL) { return EFI_INVALID_PARAMETER; } --=20 2.18.0.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 (#49042): https://edk2.groups.io/g/devel/message/49042 Mute This Topic: https://groups.io/mt/34556041/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- From nobody Mon Apr 29 14:34:53 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+49043+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+49043+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1571190418; cv=none; d=zoho.com; s=zohoarc; b=eXsdnr/ZlKY/zl0LMUjOi395rxshsSuHjTU7q9B32toP3rdfHx21Id74L4P4eJy2IlpqofrqJmaLD/rcVRrSaWvhSP0lRX7dpGbxL+df/XsW4mCKPnPJXEzFMZfcM5gFAX3omoIFQnexSRKqcbqjZsjc7nBZl+IzbbrduJQiOoQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571190418; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=/IYDsFvLXYLhpv/ML4pG/E/SMbqHUbFL/YRG63MVNSU=; b=hzkCtk2JoCgGmW9Mj+x05+vuu9BqUjNJkYhIs67vv8pQOVMBEeNbGgy0T82jivzpj2YOrGix7AnukK5gZVJsWgVCcYUL08vLNGgPPAsQ2VqBmjbkWZFTWCo2lm2y60mqFOuX55V5MLvbsvYAAiR3mLrnpG7CQK5QXmA1OJoCEu0= 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+49043+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 157119041874667.1879229477463; Tue, 15 Oct 2019 18:46:58 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id tYEYYY1788612xQbA3OiGn68; Tue, 15 Oct 2019 18:46:58 -0700 X-Received: from mga09.intel.com (mga09.intel.com []) by mx.groups.io with SMTP id smtpd.web11.936.1571190412247125795 for ; Tue, 15 Oct 2019 18:46:57 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Oct 2019 18:46:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,302,1566889200"; d="scan'208";a="199909608" X-Received: from shenglei-dev.ccr.corp.intel.com ([10.239.158.52]) by orsmga006.jf.intel.com with ESMTP; 15 Oct 2019 18:46:56 -0700 From: "Zhang, Shenglei" To: devel@edk2.groups.io Cc: Dandan Bi , Liming Gao Subject: [edk2-devel] [PATCH 3/3] MdeModulePkg/Mem: Initialize the variable MapMemory Date: Wed, 16 Oct 2019 09:46:48 +0800 Message-Id: <20191016014648.4952-4-shenglei.zhang@intel.com> In-Reply-To: <20191016014648.4952-1-shenglei.zhang@intel.com> References: <20191016014648.4952-1-shenglei.zhang@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,shenglei.zhang@intel.com X-Gm-Message-State: 1a0DEFQtRdNkgW90IsHf8x5Ox1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1571190418; bh=q+u6BkCqkRL7EaMtlVChTR/VYgbpSTArRs3S/5Xtf+g=; h=Cc:Date:From:Reply-To:Subject:To; b=JLbe7+RpqUmCzmnl/YKFzc/FzC1I3fIRahb1FFBICOgxtEujeYnCUazjpBlfsReojrs kWuagAJuiw8UDByE+TR/lXKCl4jS8DeEpPcY+BCh3+klpN75w+IyyS/slzOZcHmFU0p3m VrLwpcI2/fJ+62MCBZYcZxMDFil2ycqBUDE= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Initialize MapMemory to 0 in HeapGuard.c. Cc: Dandan Bi Cc: Liming Gao Signed-off-by: Shenglei Zhang --- MdeModulePkg/Core/Dxe/Mem/HeapGuard.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MdeModulePkg/Core/Dxe/Mem/HeapGuard.c b/MdeModulePkg/Core/Dxe/= Mem/HeapGuard.c index 9477b94044ba..b4cb48843fb7 100644 --- a/MdeModulePkg/Core/Dxe/Mem/HeapGuard.c +++ b/MdeModulePkg/Core/Dxe/Mem/HeapGuard.c @@ -225,6 +225,8 @@ FindGuardedMemoryMap ( UINTN BitsToUnitEnd; EFI_STATUS Status; =20 + MapMemory =3D 0; + // // Adjust current map table depth according to the address to access // --=20 2.18.0.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 (#49043): https://edk2.groups.io/g/devel/message/49043 Mute This Topic: https://groups.io/mt/34556043/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-