From nobody Thu Nov 28 23:48:08 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+72748+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+72748+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1615730361; cv=none; d=zohomail.com; s=zohoarc; b=Pb0dC4XnwxweT3nVCbj14ejG2zC9nFhv7jmSjN9MPvE/PbaNA9k85CHFc0MTR/+LDj9edCWSCI8mV4Iwj/tN70aEDv5BddTJGCWco1mWC1mkn2Q9IDtt0WBcCr+kf01pT1DhS0q7exggrL6UsB5EcH9l/4JezDBwSwlqJAu6hEI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615730361; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=LWpdfh1rFh04uXRzO+510LdHjKPa72+s5lZ+hZgcO04=; b=TA2Q+VChZnnICQhc/zkLdLdEf21gX14FSIGQs7Hs5j7YMzkntL2eA3jG3/+x0geZbGdJgiTmPruRiZ6iJWGA4fk5F5TYlx7kwEG93le39WeIv8g5Mm194CZ3yPwBTNlkJogbrO0n1oFhIMjhPbx3gKAmT/L9bfOAflsyjGQitw8= 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+72748+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1615730361707716.0672760049926; Sun, 14 Mar 2021 06:59:21 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 0Il7YY1788612xKOXN9LXu6T; Sun, 14 Mar 2021 06:59:21 -0700 X-Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web09.6318.1615730359908665512 for ; Sun, 14 Mar 2021 06:59:20 -0700 IronPort-SDR: zDowjigdEJ8CmG2FHxFY8y5VzbnE+x9MKUChG/i0sZBm2tSy3nfJFYmnclDei0YFNpXyeVJcZe qDzKPJearDtA== X-IronPort-AV: E=McAfee;i="6000,8403,9922"; a="185634864" X-IronPort-AV: E=Sophos;i="5.81,248,1610438400"; d="scan'208";a="185634864" X-Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2021 06:59:18 -0700 IronPort-SDR: 8b0XFrUSWjvKlbEQlpmlTEzOpbUXjNIbTtYElYHtW2DYWdmtNbjR6LNwQ8SjVSnTuJLpIpVKRE TZ9sAT3ZSllw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,248,1610438400"; d="scan'208";a="604540310" X-Received: from ikuox-tiger-lake-client-platform.itwn.intel.com ([10.5.215.23]) by fmsmga005.fm.intel.com with ESMTP; 14 Mar 2021 06:59:17 -0700 From: "IanX Kuo" To: devel@edk2.groups.io Cc: VincentX Ke Subject: [edk2-devel] [PATCH] ShellPkg/Library: Error handle while CapabilityId is 0xFFFF Date: Thu, 8 Apr 2021 05:50:21 +0800 Message-Id: MIME-Version: 1.0 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,ianx.kuo@intel.com X-Gm-Message-State: mQLZknrNY0syEwICAnTMMPYfx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1615730361; bh=XZxXQZV38liwbZnE+KFGx7FLvHCbOyJDZlK4bIfnM14=; h=Cc:Date:From:Reply-To:Subject:To; b=ZlTdxzmm5CNjmnb/r6LtDua3WcmRnMaYXRnB8OhWz8CCNeeRlzo98Zw6D5E5/RqG30I nAwqQkTrwrM3FLRgQBzWdec5NkhjVFV2oLmS98uuf+QfBqwsDg/TkIKIS2UZBlPNuZAQy POzgxKSNBGbwLqFjxgeLQj9DNFSyntIDnUE= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: VincentX Ke Bugzilla: 3262 (https://bugzilla.tianocore.org/show_bug.cgi?id=3D3262) Adding error handle while CapabilityId is 0xFFFF Signed-off-by: VincentX Ke --- ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c b/ShellPkg/L= ibrary/UefiShellDebug1CommandsLib/Pci.c index a2f04d8db5..cd295bb79b 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c @@ -5786,7 +5786,7 @@ PciExplainPciExpress ( } =20 ExtHdr =3D (PCI_EXP_EXT_HDR*)ExtendedConfigSpace; - while (ExtHdr->CapabilityId !=3D 0 && ExtHdr->CapabilityVersion !=3D 0) { + while (ExtHdr->CapabilityId !=3D 0 && ExtHdr->CapabilityVersion !=3D 0 &= & ExtHdr->CapabilityId !=3D 0xFFFF) { // // Process this item // --=20 2.26.2.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 (#72748): https://edk2.groups.io/g/devel/message/72748 Mute This Topic: https://groups.io/mt/81324192/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-